MH-Z16 carbon dioxide gas sensor is a high-performance sensor that uses the principle of non-dispersive infrared (NDIR) to detect CO2 in the air. It has good selectivity, no oxygen dependence and long life. Built-in temperature compensation; with digital output and PWM output, easy to use.
This is the user manual (version 2.3) for the Winsen MH-Z16 carbon dioxide gas sensor, a general-purpose small sensor that uses the non-dispersive infrared (NDIR) principle to detect CO2 in air. It describes the sensor's features, main applications, technical specifications and the common measurement ranges with their accuracy.
The manual explains the pin definitions and the three output options: PWM waveform, analog voltage (Vout) and UART, including the protocol commands 0x86 for reading gas concentration, 0x87 for zero calibration and 0x88 for span calibration, with checksum calculation. It also covers the manual, command and automatic zero calibration methods and lists precautions for soldering, installation, power supply and periodic calibration. This manual is written in Chinese.
| Detected gas | Carbon dioxide (CO2) |
|---|---|
| Operating voltage | 4.5 to 5.5 V DC |
| Average current | Less than 85 mA |
| Interface level | 3.3 V |
| Measurement range | 0 to 5% Vol, selectable |
| Output signal | UART, PWM |
| Warm-up time | 3 min |
| Response time | T90 < 30 s |
| Operating temperature | 0 to 50 ℃ |
| Operating humidity | 0 to 95% RH (no condensation) |
| Dimensions | 97 mm x 20 mm x 17 mm (L x W x H) |
| Accuracy (0 to 2000 ppm) | ±(100 ppm + 6% of reading), temperature compensated |
Use the formula Cppm = 2000 × (TH − 2 ms) / (TH + TL − 4 ms), where TH is the high-level time and TL the low-level time in one output period.
Set the baud rate to 9600, 8 data bits, 1 stop bit and no parity.
All zero calibration methods calibrate to 400 ppm, and the sensor should run stably at 400 ppm for more than 20 minutes before calibrating.
From power-up the sensor automatically calibrates once every 24 hours; this mode suits office and home environments but not greenhouses, farms or cold storage.
The supply current must be no less than 150 mA while the voltage stays within 4.5 V to 5.5 V DC.