Component guide · Intermediate · 5 min read
Winsen ZE03, ZE07, ZE12A, ZE15, ZE16B, ZE21

and ZE29A Electrochemical Gas Modules (CO, H2S, NH3, NO2, SO2, Cl2, H2)
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Winsen ZE-series modules combine an electrochemical cell with a microcontroller that outputs calibrated ppm over UART and as an analog voltage. ZE03 is the general family for CO, H2S, NH3, NO2, SO2, Cl2, HF and H2. ZE07 and ZE15 are compact CO and H2 modules, ZE16B is a low-cost CO module, and ZE21 measures hydrogen up to 20,000 ppm.
Key specs at a glance
- Supply
- 5 to 9 V (ZE03), 3.7 to 5.5 V (ZE07, ZE15) by model
- Interface
- UART 9600 8N1 (3.3 V logic), plus DAC 0.4 to 2 V
- Mode
- Active upload every second or question and answer
- Ranges
- e.g. CO 0 to 1000 ppm, H2S 0 to 100 ppm, NH3 0 to 100 ppm, NO2 0 to 20 ppm
- Resolution
- 0.01 to 1 ppm by gas
- Life
- About 2 years (cell)
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Winsen ZE03-CO Electrochemical CO Gas Sensor Module – UART & Analog Output₹4,829
Option 2Winsen ZE03-H2S Hydrogen Sulfide Gas Sensor Module – UART & Analog Output₹4,319
Option 3Winsen ZE03-H2S Gas Sensor Module – 0 to 20 ppm, UART/Analog Output₹5,109
Option 4Winsen ZE03-NH3 Ammonia Gas Sensor Module – 0-50 ppm, 0.01 ppm Resolution, UART/Analog Output₹11,499
Option 5Winsen ZE03-NO2 Nitrogen Dioxide Sensor Module Detection 0-20ppm – UART & Analog Output₹11,599
Option 6Winsen ZE03-SO2 Sulfur Dioxide Gas Sensor Module – UART/Analog Output₹13,879
What the Winsen ZE03, ZE07, ZE15 and ZE16 gas modules is
Winsen ZE03 and ZE07 modules are calibrated electrochemical gas sensor modules for CO, H2S, NH3, O2 and others, with UART and analog outputs ready to use.
In active upload mode the module sends a 9-byte frame every second starting with 0xFF. Bytes 4 and 5 hold the concentration and byte 3 the number of decimal places on most models.
Send FF 01 78 41 00 00 00 00 46 to switch to question-and-answer mode, then FF 01 86 00 00 00 00 00 79 to request a reading.
Winsen ZE03, ZE07, ZE15 and ZE16 gas modules pinout
The pins on the Winsen ZE03, ZE07, ZE15 and ZE16 gas modules and what each one does.
| Pin | Function |
|---|---|
| VIN | Supply |
| GND | Ground |
| TXD / RXD | UART, 3.3 V logic |
| DAC | Analog output |
- VIN
- Supply
- GND
- Ground
- TXD / RXD
- UART, 3.3 V logic
- DAC
- Analog output
Wiring the Winsen ZE03, ZE07, ZE15 and ZE16 gas modules
The UART is 3.3 V logic. On a 5 V Uno, divide the Uno's TX down before the module's RXD.
| Winsen ZE03, ZE07, ZE15 and ZE16 gas modules pin | Arduino Uno | ESP32 |
|---|---|---|
| Module VCC | 5 V | 5 V (VIN) |
| Module GND | GND | GND |
| Module TXD | D10 (SoftwareSerial RX) | GPIO 16 (RX2) |
| Module RXD | D11 through a divider if the module is 3.3 V | GPIO 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)
Example code
A minimal sketch to check the part works.
// Winsen ZE-series modules send a 9-byte frame every second in active upload mode:
// FF, gas, unit, decimals, conc high, conc low, range high, range low, checksum
HardwareSerial &gas = Serial2;
bool readFrame(uint8_t *b) {
while (gas.available() >= 9) {
if (gas.read() != 0xFF) continue;
b[0] = 0xFF;
gas.readBytes(b + 1, 8);
uint8_t sum = 0;
for (int i = 1; i < 8; i++) sum += b[i];
return (uint8_t)(~sum + 1) == b[8];
}
return false;
}
void setup() {
Serial.begin(115200);
gas.begin(9600, SERIAL_8N1, 16, 17); // RX, TX
}
void loop() {
uint8_t b[9];
if (readFrame(b)) {
float c = (b[4] << 8 | b[5]) / pow(10, b[3]);
Serial.print("Concentration "); Serial.println(c, 2); // ppm, or ppb on some models
}
delay(200);
}Setup and tuning
feed 5 V (some versions 3.7 to 5.5 V).
read at 9600 baud; logic is 3.3 V.
use active upload or question-and-answer mode.
allow a few minutes before trusting readings.
sensors last about 2 to 3 years.
What you need
Shop this list20 of 20 found in our store · ₹1,35,240
Winsen ZE03-CO Electrochemical CO Gas Sensor Module – UART & Analog Output: the part this guide coversWinsen ZE03-CO Electrochemical CO Gas Sensor Module – UART & Analog Output₹4,829
Winsen ZE03-H2S Hydrogen Sulfide Gas Sensor Module – UART & Analog Output: another version this guide coversWinsen ZE03-H2S Hydrogen Sulfide Gas Sensor Module – UART & Analog Output₹4,319
Winsen ZE03-H2S Gas Sensor Module – 0 to 20 ppm, UART/Analog Output: another version this guide coversWinsen ZE03-H2S Gas Sensor Module – 0 to 20 ppm, UART/Analog Output₹5,109
Winsen ZE03-NH3 Ammonia Gas Sensor Module – 0-50 ppm, 0.01 ppm Resolution, UART/Analog Output: another version this guide coversWinsen ZE03-NH3 Ammonia Gas Sensor Module – 0-50 ppm, 0.01 ppm Resolution, UART/Analog Output₹11,499
Winsen ZE03-NO2 Nitrogen Dioxide Sensor Module Detection 0-20ppm – UART & Analog Output: another version this guide coversWinsen ZE03-NO2 Nitrogen Dioxide Sensor Module Detection 0-20ppm – UART & Analog Output₹11,599
Winsen ZE03-SO2 Sulfur Dioxide Gas Sensor Module – UART/Analog Output: another version this guide coversWinsen ZE03-SO2 Sulfur Dioxide Gas Sensor Module – UART/Analog Output₹13,879
Winsen ZE03-CL2 Chlorine Gas Sensor Module – 0-20 ppm, UART/Analog Output: another version this guide coversWinsen ZE03-CL2 Chlorine Gas Sensor Module – 0-20 ppm, UART/Analog Output₹10,779
Winsen ZE03 Electrochemical H2 Gas Sensor Module – UART & Analog Voltage Output: another version this guide coversWinsen ZE03 Electrochemical H2 Gas Sensor Module – UART & Analog Voltage Output₹4,459
Winsen ZE03-HF Electrochemical Hydrogen Fluoride (HF) Gas Sensor Module: another version this guide coversWinsen ZE03-HF Electrochemical Hydrogen Fluoride (HF) Gas Sensor Module₹16,799
Winsen ZE03-DG Electrochemical Sensor Module Detection 0-50ppm – UART/Analog Output: another version this guide coversWinsen ZE03-DG Electrochemical Sensor Module Detection 0-50ppm – UART/Analog Output₹4,229
Winsen ZE07-CO Electrochemical Carbon Monoxide Sensor Module – UART/Analog Voltage Output: another version this guide coversWinsen ZE07-CO Electrochemical Carbon Monoxide Sensor Module – UART/Analog Voltage Output₹1,129
Winsen ZE07-H2 Electrochemical Hydrogen Gas Sensor Module – UART/Analog Voltage Output: another version this guide coversWinsen ZE07-H2 Electrochemical Hydrogen Gas Sensor Module – UART/Analog Voltage Output₹1,509
Winsen ZE15-CO Carbon Monoxide Sensor Module – UART & Analog Voltage Output: another version this guide coversWinsen ZE15-CO Carbon Monoxide Sensor Module – UART & Analog Voltage Output₹939
Winsen ZE16B-CO Carbon Monoxide Gas Sensor Module – 0-500ppm, UART/PWM Output: another version this guide coversWinsen ZE16B-CO Carbon Monoxide Gas Sensor Module – 0-500ppm, UART/PWM Output₹729
Winsen ZE12A-NO2 Electrochemical Gas Sensor Module – DAC & UART Output: another version this guide coversWinsen ZE12A-NO2 Electrochemical Gas Sensor Module – DAC & UART Output₹17,759
Winsen ZE12A-SO2 Electrochemical Gas Sensor Module – DAC & UART Output: another version this guide coversWinsen ZE12A-SO2 Electrochemical Gas Sensor Module – DAC & UART Output₹17,759
Winsen ZE21-H2 Hydrogen Gas Detection Module – UART Output, 0-20000ppm Range: another version this guide coversWinsen ZE21-H2 Hydrogen Gas Detection Module – UART Output, 0-20000ppm Range₹2,259
Winsen ZE29A C2H5OH Alcohol Detection Module – UART Output: another version this guide coversWinsen ZE29A C2H5OH Alcohol Detection Module – UART Output₹3,549
Winsen ZE630 Vehicle BMS H2 Hydrogen Gas Sensor Module – UART/PWM Output: another version this guide coversWinsen ZE630 Vehicle BMS H2 Hydrogen Gas Sensor Module – UART/PWM Output₹1,409
Winsen ZC05 Domestic Methane Gas Sensor Module – UART Output, 5V DC: another version this guide coversWinsen ZC05 Domestic Methane Gas Sensor Module – UART Output, 5V DC₹699
Alternatives and when to choose them
- Winsen ME3 and ME4 cells: bare cells to build your own.
- Winsen gas sensor modules: the whole Winsen range.
- DFRobot Gravity calibrated: I2C boards.
Common mistakes to avoid
- Wrong baud rate.
- Reading before warm-up.
- Using as a certified alarm.
- Using past sensor life.
Frequently asked questions
How do I read a ZE07 CO module?
Read UART frames at 9600 baud and decode the gas value.
Is the module calibrated?
Yes, it is factory calibrated, but check it against a reference periodically.
Can I use it with ESP32?
Yes. Its UART uses 3.3 V logic, which is safe for the ESP32.
What is question-and-answer mode?
In this mode the module sends a reading only when you request one.
Can it be used for safety alarms?
Not as a certified alarm; use certified gas detectors for safety.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.





