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. ›Winsen MH-Z14A, MH-Z16 and MH-410D NDIR CO2 Sensors

Component guide · Intermediate · 3 min read

Winsen MH-Z14A, MH-Z16 and MH-410D NDIR CO2 Sensors

UART, PWM and Analog Wiring

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 MH-Z14, MH-Z16 and MH-410D NDIR CO2 sensors isMH-Z14, MH-Z16 and MH-410D NDIR CO2 sensors pinoutWiring the MH-Z14, MH-Z16 and MH-410D NDIR CO2 sensorsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

The MH-Z14A and MH-Z16 are Winsen NDIR CO2 sensors that use the same UART commands as the MH-Z19. The MH-Z14A is a long board with 0 to 5000 ppm range and UART, PWM and analog outputs. The MH-Z16 has a larger optical chamber with ranges up to 10 percent volume for greenhouses and fermentation. The MH-410D is an NDIR module for industrial CO2.

Key specs at a glance

Supply
4.5 to 5.5 V
Range
0 to 2000, 5000 or 10,000 ppm (MH-Z14A); up to 10% vol (MH-Z16)
Interface
UART 9600 (3.3 V logic), PWM, analog 0.4 to 2 V
Accuracy
About plus or minus 50 ppm plus 5% of reading
Warm-up
About 3 minutes
Current
Under 100 to 150 mA average

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1Winsen MH-Z14 NDIR CO2 Sensor Module – UART/Analog/PWM Output₹3,611
  • Option 2Winsen MH-Z14A IR CO2 Sensor Module – UART/Analog/PWM Output₹3,396
  • Option 3Winsen MH-Z16 NDIR CO2 Sensor Module – UART/PWM Output₹3,839
  • Option 4MH-Z16 NDIR CO2 Sensor 0-1% Volume – UART/PWM Output₹5,179
  • Option 5Winsen MH-410D NDIR CO2 Gas Sensor – UART/Analog Output₹10,049
01

What the MH-Z14, MH-Z16 and MH-410D NDIR CO2 sensors is

The Winsen MH-Z14 and MH-Z16 are NDIR CO2 sensors with UART, PWM and analog outputs; the MH-Z16 measures up to higher ranges for greenhouses and industry.

Send FF 01 86 00 00 00 00 00 79 and the sensor replies with nine bytes; CO2 ppm is byte 2 x 256 + byte 3.

Automatic baseline correction assumes the sensor sees 400 ppm at least once a day. Turn it off in greenhouses that never air out.

02

MH-Z14, MH-Z16 and MH-410D NDIR CO2 sensors pinout

The pins on the MH-Z14, MH-Z16 and MH-410D NDIR CO2 sensors and what each one does.

PinFunction
Vin5 V
GNDGround
TXD / RXDUART
PWMPulse output
VoAnalog output
PinFunction
Vin
5 V
GND
Ground
TXD / RXD
UART
PWM
Pulse output
Vo
Analog output
03

Wiring the MH-Z14, MH-Z16 and MH-410D NDIR CO2 sensors

Connect the MH-Z14, MH-Z16 and MH-410D NDIR CO2 sensors like this.

MH-Z14, MH-Z16 and MH-410D NDIR CO2 sensors pinArduino UnoESP32
Module VCC5 V5 V (VIN)
Module GNDGNDGND
Module TXDD10 (SoftwareSerial RX)GPIO 16 (RX2)
Module RXDD11 through a divider if the module is 3.3 VGPIO 17 (TX2)
Module VCC
Arduino Uno:
5 V
ESP32:
5 V (VIN)
Module GND
Arduino Uno:
GND
ESP32:
GND
Module TXD
Arduino Uno:
D10 (SoftwareSerial RX)
ESP32:
GPIO 16 (RX2)
Module RXD
Arduino Uno:
D11 through a divider if the module is 3.3 V
ESP32:
GPIO 17 (TX2)
04

Example code

A minimal sketch to check the part works.

Read CO2 over UART (ESP32) · Arduino C++Verify & upload in Electrolark
const uint8_t CMD[9] = {0xFF, 0x01, 0x86, 0, 0, 0, 0, 0, 0x79};

void setup() {
  Serial.begin(115200);
  Serial2.begin(9600, SERIAL_8N1, 16, 17);
}

void loop() {
  Serial2.write(CMD, 9);
  uint8_t r[9];
  if (Serial2.readBytes(r, 9) == 9 && r[0] == 0xFF && r[1] == 0x86) {
    Serial.print(r[2] * 256 + r[3]); Serial.println(" ppm");
  }
  delay(5000);
}
05

Setup and tuning

Supply

feed 4.5 to 5.5 V at about 150 mA.

UART

read at 9600 baud with the read command; use 3.3 V levels as rated.

Warm-up

wait about 3 minutes after power-up.

Calibration

auto baseline assumes fresh air daily; turn it off in greenhouses.

Ventilation

let air reach the sensor freely.

06

What you need

Shop this list9 of 10 found in our store · ₹29,499

  • Winsen MH-Z14 NDIR CO2 Sensor Module – UART/Analog/PWM Output: the part this guide coversWinsen MH-Z14 NDIR CO2 Sensor Module – UART/Analog/PWM Output₹3,611
  • Winsen MH-Z14A IR CO2 Sensor Module – UART/Analog/PWM Output: another version this guide coversWinsen MH-Z14A IR CO2 Sensor Module – UART/Analog/PWM Output₹3,396
  • Winsen MH-Z16 NDIR CO2 Sensor Module – UART/PWM Output: another version this guide coversWinsen MH-Z16 NDIR CO2 Sensor Module – UART/PWM Output₹3,839
  • MH-Z16 NDIR CO2 Sensor 0-1% Volume – UART/PWM Output: another version this guide coversMH-Z16 NDIR CO2 Sensor 0-1% Volume – UART/PWM Output₹5,179
  • Winsen MH-410D NDIR CO2 Gas Sensor – UART/Analog Output: another version this guide coversWinsen MH-410D NDIR CO2 Gas Sensor – UART/Analog Output₹10,049
  • 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

  • ✓MH-Z19 sensor: smaller, same commands.
  • ✓CO2 NDIR sensors: background and choosing.
  • ✓SCD30 sensor: I2C with temperature and humidity.
08

Common mistakes to avoid

  • !Leaving auto-calibration on in greenhouses.
  • !Weak 5 V supply.
  • !Reading before warm-up.
  • !Blocking air flow.
09

Frequently asked questions

What range do the MH-Z14 and MH-Z16 measure?

Commonly 0 to 5000 ppm; MH-Z16 versions reach up to 10,000 ppm or more.

Why do readings drift down?

Auto baseline calibration assumes 400 ppm fresh air; turn it off if needed.

Can I read it with ESP32?

Yes. Read it over UART at 9600 baud, powering the sensor from 5 V.

How long does it warm up?

About 3 minutes after power-up before readings are reliable.

Is NDIR better than chemical CO2 sensors?

Yes. NDIR measures CO2 directly with infrared, so it is more accurate and stable.

Parts for this guide

  • Winsen MH-Z14 NDIR CO2 Sensor Module – UART/Analog/PWM Output
    ₹3,611View
  • Winsen MH-Z14A IR CO2 Sensor Module – UART/Analog/PWM Output
    ₹3,396View
  • Winsen MH-Z16 NDIR CO2 Sensor Module – UART/PWM Output
    ₹3,839View
  • MH-Z16 NDIR CO2 Sensor 0-1% Volume – UART/PWM Output
    ₹5,179View
  • Winsen MH-410D NDIR CO2 Gas Sensor – UART/Analog Output
    ₹10,049View
  • 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

Component guideIntermediateMH-Z19 CO2 SensorThe MH-Z19 from Winsen is an NDIR (infrared) CO2 sensor that measures real carbon dioxide from 400 to 5,000 ppm.3 min read · SensorsComparisonIntermediateCO2 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 guideIntermediateSensirion SCD30 NDIR CO2, Temperature and Humidity SensorThe Sensirion SCD30 is a dual-channel NDIR CO2 sensor with built-in temperature and humidity, so one board gives the three main indoor air values.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

  • Winsen MH-Z14A and MH-Z16 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 MH-Z14, MH-Z16 and MH-410D NDIR CO2 sensors isMH-Z14, MH-Z16 and MH-410D NDIR CO2 sensors pinoutWiring the MH-Z14, MH-Z16 and MH-410D NDIR CO2 sensorsExample 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)5 items · ₹16,229

Winsen MH-Z14 NDIR CO2 Sensor Module – UART/Analog/PWM Output · Winsen MH-Z14A IR CO2 Sensor Module – UART/Analog/PWM Output · Winsen MH-Z16 NDIR CO2 Sensor Module – UART/PWM Output · MH-Z16 NDIR CO2 Sensor 0-1% Volume – UART/PWM Output · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

Ask for a reading every 5 s. Fresh outdoor air is about 420 ppm; a closed room with people can pass 1500.

Serial monitor115200 baud
777 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