Component guide · Intermediate · 4 min read
CO2 Modules

Telaire T6713, Asair ACD10, S8-0053, MemsFrontier MTP60 / MTP80, Infineon XENSIV PAS CO2, DFRobot Gravity IR
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
These modules measure CO2 by how much infrared light it absorbs (NDIR) or by the sound pulses it makes when IR light hits it (photoacoustic, Infineon XENSIV PAS CO2). They read about 400 to 5000 ppm with plus or minus 30 to 50 ppm accuracy, and talk UART, I2C, PWM or Modbus. The MPY20 is a bare pyroelectric detector for building your own NDIR sensor.
Key specs at a glance
- Range
- Typically 400 to 5000 ppm (some to 10,000 or more)
- Accuracy
- About plus or minus (30 to 50 ppm + 3 to 5%)
- Interface
- UART, I2C, PWM, Modbus by model
- Supply
- 3.3 V or 5 V by model; XENSIV needs 12 V for its emitter
- Warm-up
- About 1 to 3 minutes
- Calibration
- Automatic baseline (ABC) or forced at 400 ppm
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Amphenol Advanced Telaire T6713 NDIR CO2 Gas Detection Sensor Module 0-5000 ppm₹9,239
Option 2Asair ACD10 Infrared CO2 Gas Sensor Module – NDIR Digital Output₹1,559
Option 3S8-0053 Infrared CO2 Sensor Module with Temperature & Humidity – UART/Modbus/PWM₹349
Option 4MemsFrontier MTP60-A NDIR CO2 Sensor Module – UART/I2C/PWM Output₹1,339
Option 5MemsFrontier MTP80-A Dual Channel CO2 Sensor Module – NDIR, UART/I2C/PWM Output₹1,569
Option 6DFRobot Gravity Infrared CO2 Sensor 400–5000ppm – PWM Output₹5,049
What the NDIR and photoacoustic CO2 modules is
NDIR CO2 sensor modules such as the MH-Z19, SenseAir S8 and SCD30 measure carbon dioxide with infrared light, giving accurate ppm readings for indoor air quality and greenhouses.
Most PWM-output CO2 sensors use a 1004 ms cycle where CO2 = range x (high time - 2 ms) / (cycle - 4 ms). Check your module's sheet for its range.
Photoacoustic sensors are small and low-power but sensitive to vibration and pressure; mount them firmly.
NDIR and photoacoustic CO2 modules pinout
The pins on the NDIR and photoacoustic CO2 modules and what each one does.
| Pin | Function |
|---|---|
| VCC / GND | Power |
| TX / RX or SDA / SCL | Digital interface |
| PWM | Pulse output |
| Alarm / RDY | Optional |
- VCC / GND
- Power
- TX / RX or SDA / SCL
- Digital interface
- PWM
- Pulse output
- Alarm / RDY
- Optional
Wiring the NDIR and photoacoustic CO2 modules
Connect the NDIR and photoacoustic CO2 modules like this.
| NDIR and photoacoustic CO2 modules pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5 V | 5 V or 3.3 V by model |
| GND | GND | GND |
| PWM | D2 | GPIO 27 |
| TX / RX | SoftwareSerial | GPIO 16 / 17 |
- VCC
- Arduino Uno:
- 5 V
- ESP32:
- 5 V or 3.3 V by model
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- PWM
- Arduino Uno:
- D2
- ESP32:
- GPIO 27
- TX / RX
- Arduino Uno:
- SoftwareSerial
- ESP32:
- GPIO 16 / 17
Example code
A minimal sketch to check the part works.
const int PWM_PIN = 2;
const int RANGE = 5000; // ppm full scale for your module
void setup() { Serial.begin(115200); pinMode(PWM_PIN, INPUT); }
void loop() {
unsigned long th = pulseIn(PWM_PIN, HIGH, 2500000) / 1000; // ms
unsigned long tl = pulseIn(PWM_PIN, LOW, 2500000) / 1000;
if (th + tl > 0) {
long ppm = (long)RANGE * (th - 2) / (th + tl - 4);
Serial.print(ppm); Serial.println(" ppm");
}
}Setup and tuning
most need 5 V power at 100 to 150 mA peak, with UART, I2C, PWM or analog output.
many UART pins are 3.3 V; check before connecting to a 5 V board.
wait 1 to 3 minutes after power-up.
auto baseline assumes fresh air (about 420 ppm) once a week; turn it off in greenhouses.
mount at breathing height, away from windows, doors and people breathing directly on it.
What you need
Shop this list13 of 14 found in our store · ₹33,606
Amphenol Advanced Telaire T6713 NDIR CO2 Gas Detection Sensor Module 0-5000 ppm: the part this guide coversAmphenol Advanced Telaire T6713 NDIR CO2 Gas Detection Sensor Module 0-5000 ppm₹9,239
Asair ACD10 Infrared CO2 Gas Sensor Module – NDIR Digital Output: another version this guide coversAsair ACD10 Infrared CO2 Gas Sensor Module – NDIR Digital Output₹1,559
S8-0053 Infrared CO2 Sensor Module with Temperature & Humidity – UART/Modbus/PWM: another version this guide coversS8-0053 Infrared CO2 Sensor Module with Temperature & Humidity – UART/Modbus/PWM₹349
MemsFrontier MTP60-A NDIR CO2 Sensor Module – UART/I2C/PWM Output: another version this guide coversMemsFrontier MTP60-A NDIR CO2 Sensor Module – UART/I2C/PWM Output₹1,339
MemsFrontier MTP80-A Dual Channel CO2 Sensor Module – NDIR, UART/I2C/PWM Output: another version this guide coversMemsFrontier MTP80-A Dual Channel CO2 Sensor Module – NDIR, UART/I2C/PWM Output₹1,569
DFRobot Gravity Infrared CO2 Sensor 400–5000ppm – PWM Output: another version this guide coversDFRobot Gravity Infrared CO2 Sensor 400–5000ppm – PWM Output₹5,049
Infineon Technologies XENSIV PAS CO2 Carbon Dioxide Gas Detection Sensor, 0-32000 ppm – I2C/UART/PWM: another version this guide coversInfineon Technologies XENSIV PAS CO2 Carbon Dioxide Gas Detection Sensor, 0-32000 ppm – I2C/UART/PWM₹3,459
Infineon Technologies XENSIV PAS CO2 Gas Detection Sensor PASCO2V01BUMA1 – 0-32000 ppm, I2C/UART/PWM: another version this guide coversInfineon Technologies XENSIV PAS CO2 Gas Detection Sensor PASCO2V01BUMA1 – 0-32000 ppm, I2C/UART/PWM₹3,249
MemsFrontier MPY20-A112T Infrared Pyroelectric Gas Sensor (CO2) – TO-39 Package: another version this guide coversMemsFrontier MPY20-A112T Infrared Pyroelectric Gas Sensor (CO2) – TO-39 Package₹4,369
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389- Uno R3 development board: the controller used in the wiring tableFind this part
USB to TTL serial converter: to talk to the module from a PCUSB to TTL Serial Converter (CH340G / CP2102 / FT232RL / PL2303)₹85Closest match, check the specs
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
MH-Z19C NDIR CO2 sensor: the popular low-cost NDIR CO2 sensorWinsen MH-Z19C NDIR CO2 Sensor HVAC/IAQ – UART/PWM Output₹2,812Closest match, check the specs
Alternatives and when to choose them
- CO2 NDIR sensors: background.
- MH-Z14A and MH-Z16: Winsen UART modules.
- SCD4x: small photoacoustic sensor with RH.
Common mistakes to avoid
- Powering the sensor from 3.3 V.
- Leaving auto calibration on in a sealed greenhouse.
- Breathing straight onto the sensor.
- Reading before warm-up.
Frequently asked questions
Why are NDIR sensors better than MQ-135 for CO2?
NDIR measures CO2 directly with infrared, so readings are accurate and stable.
What CO2 level is good indoors?
Below about 800 ppm is good; above 1500 ppm, open a window.
Why do my readings slowly drift down?
Auto baseline calibration thinks the lowest reading is fresh air; turn it off if the room never ventilates.
Can I read an MH-Z19 with ESP32?
Yes, over UART with the MH-Z19 library, powering the sensor from 5 V.
How often should I calibrate?
Calibrate in outdoor air after installing, then check yearly.
Parts for this guide
- ₹9,239View
- ₹1,559View
- ₹349View
- ₹1,339View
- ₹1,569View
- ₹5,049View
Infineon Technologies XENSIV PAS CO2 Carbon Dioxide Gas Detection Sensor, 0-32000 ppm – I2C/UART/PWM₹3,459View
Infineon Technologies XENSIV PAS CO2 Gas Detection Sensor PASCO2V01BUMA1 – 0-32000 ppm, I2C/UART/PWM₹3,249View- ₹4,369View
- ₹389View
- ₹359View
- ₹85View
- ₹139View
- ₹2,999View
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


