Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›CO2 Modules

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

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the NDIR and photoacoustic CO2 modules isNDIR and photoacoustic CO2 modules pinoutWiring the NDIR and photoacoustic CO2 modulesExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

NDIR and photoacoustic CO2 modules pinout

The pins on the NDIR and photoacoustic CO2 modules and what each one does.

PinFunction
VCC / GNDPower
TX / RX or SDA / SCLDigital interface
PWMPulse output
Alarm / RDYOptional
PinFunction
VCC / GND
Power
TX / RX or SDA / SCL
Digital interface
PWM
Pulse output
Alarm / RDY
Optional
03

Wiring the NDIR and photoacoustic CO2 modules

Connect the NDIR and photoacoustic CO2 modules like this.

NDIR and photoacoustic CO2 modules pinArduino UnoESP32
VCC5 V5 V or 3.3 V by model
GNDGNDGND
PWMD2GPIO 27
TX / RXSoftwareSerialGPIO 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
04

Example code

A minimal sketch to check the part works.

Read a PWM CO2 output · Arduino C++Verify & upload in Electrolark
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");
  }
}
05

Setup and tuning

Wiring

most need 5 V power at 100 to 150 mA peak, with UART, I2C, PWM or analog output.

Logic level

many UART pins are 3.3 V; check before connecting to a 5 V board.

Warm-up

wait 1 to 3 minutes after power-up.

Calibration

auto baseline assumes fresh air (about 420 ppm) once a week; turn it off in greenhouses.

Placement

mount at breathing height, away from windows, doors and people breathing directly on it.

06

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
07

Alternatives and when to choose them

  • ✓CO2 NDIR sensors: background.
  • ✓MH-Z14A and MH-Z16: Winsen UART modules.
  • ✓SCD4x: small photoacoustic sensor with RH.
08

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.
09

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

  • Amphenol Advanced Telaire T6713 NDIR CO2 Gas Detection Sensor Module 0-5000 ppm
    ₹9,239View
  • Asair ACD10 Infrared CO2 Gas Sensor Module – NDIR Digital Output
    ₹1,559View
  • S8-0053 Infrared CO2 Sensor Module with Temperature & Humidity – UART/Modbus/PWM
    ₹349View
  • MemsFrontier MTP60-A NDIR CO2 Sensor Module – UART/I2C/PWM Output
    ₹1,339View
  • MemsFrontier MTP80-A Dual Channel CO2 Sensor Module – NDIR, UART/I2C/PWM Output
    ₹1,569View
  • DFRobot Gravity Infrared CO2 Sensor 400–5000ppm – PWM Output
    ₹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
  • MemsFrontier MPY20-A112T Infrared Pyroelectric Gas Sensor (CO2) – TO-39 Package
    ₹4,369View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • USB to TTL Serial Converter (CH340G / CP2102 / FT232RL / PL2303)
    ₹85View
  • 0.96" OLED Display 128x64
    ₹139View
  • MH-Z19C Infrared Carbon Dioxide Sensor Module with 7-Pin JST Cable – UART/PWM Output
    ₹2,999View
Shop Gas, Air Quality & CO2 Sensors

Keep learning

ComparisonIntermediateCO2 SensorsCO2 sensors tell you when a room needs fresh air: outdoors is about 420 ppm, under 1000 ppm indoors is good and above 1500 ppm calls for ventilation.3 min read · SensorsComponent guideIntermediateWinsen MH-Z14A, MH-Z16 and MH-410D NDIR CO2 SensorsThe MH-Z14A and MH-Z16 are Winsen NDIR CO2 sensors that use the same UART commands as the MH-Z19.3 min read · SensorsComponent guideIntermediateSCD40 and SCD41 CO2 SensorsThe SCD40 and SCD41 from Sensirion are small CO2 sensors that measure real carbon dioxide with photoacoustic NDIR, plus temperature and humidity.3 min read · SensorsConcept explainerBeginnerUART and Serial CommunicationA UART sends data one bit at a time over one wire with no shared clock, so both ends must agree on the speed, called the baud rate (9600 and 115200 are common).4 min read · Electronics Fundamentals

Sources

  • Telaire T6713, Asair ACD10 and Infineon XENSIV PAS CO2 datasheets

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the NDIR and photoacoustic CO2 modules isNDIR and photoacoustic CO2 modules pinoutWiring the NDIR and photoacoustic CO2 modulesExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)7 items · ₹25,918

Amphenol Advanced Telaire T6713 NDIR CO2 Gas Detection Sensor Module 0-5000 ppm · S8-0053 Infrared CO2 Sensor Module with Temperature & Humidity – UART/Modbus/PWM · DFRobot Gravity Infrared CO2 Sensor 400–5000ppm – PWM Output · Infineon Technologies XENSIV PAS CO2 Carbon Dioxide Gas Detection Sensor, 0-32000 ppm – I2C/UART/PWM · Infineon Technologies XENSIV PAS CO2 Gas Detection Sensor PASCO2V01BUMA1 – 0-32000 ppm, I2C/UART/PWM · MemsFrontier MPY20-A112T Infrared Pyroelectric Gas Sensor (CO2) – TO-39 Package · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

PWM output in a 1004 ms cycle: high time minus 2 ms, scaled to the 5000 ppm range.

Serial monitor115200 baud
820 ppm

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question