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 ZE03, ZE07, ZE12A, ZE15, ZE16B, ZE21

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

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the Winsen ZE03, ZE07, ZE15 and ZE16 gas modules isWinsen ZE03, ZE07, ZE15 and ZE16 gas modules pinoutWiring the Winsen ZE03, ZE07, ZE15 and ZE16 gas modulesExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

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.

PinFunction
VINSupply
GNDGround
TXD / RXDUART, 3.3 V logic
DACAnalog output
PinFunction
VIN
Supply
GND
Ground
TXD / RXD
UART, 3.3 V logic
DAC
Analog output
03

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 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 the active upload frame (ESP32) · Arduino C++Verify & upload in Electrolark
// 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);
}
05

Setup and tuning

Power

feed 5 V (some versions 3.7 to 5.5 V).

UART

read at 9600 baud; logic is 3.3 V.

Modes

use active upload or question-and-answer mode.

Warm-up

allow a few minutes before trusting readings.

Life

sensors last about 2 to 3 years.

06

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
07

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

Common mistakes to avoid

  • !Wrong baud rate.
  • !Reading before warm-up.
  • !Using as a certified alarm.
  • !Using past sensor life.
09

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

  • Winsen ZE03-CO Electrochemical CO Gas Sensor Module – UART & Analog Output
    ₹4,829View
  • Winsen ZE03-H2S Hydrogen Sulfide Gas Sensor Module – UART & Analog Output
    ₹4,319View
  • Winsen ZE03-H2S Gas Sensor Module – 0 to 20 ppm, UART/Analog Output
    ₹5,109View
  • Winsen ZE03-NH3 Ammonia Gas Sensor Module – 0-50 ppm, 0.01 ppm Resolution, UART/Analog Output
    ₹11,499View
  • Winsen ZE03-NO2 Nitrogen Dioxide Sensor Module Detection 0-20ppm – UART & Analog Output
    ₹11,599View
  • Winsen ZE03-SO2 Sulfur Dioxide Gas Sensor Module – UART/Analog Output
    ₹13,879View
  • Winsen ZE03-CL2 Chlorine Gas Sensor Module – 0-20 ppm, UART/Analog Output
    ₹10,779View
  • Winsen ZE03 Electrochemical H2 Gas Sensor Module – UART & Analog Voltage Output
    ₹4,459View
  • Winsen ZE03-HF Electrochemical Hydrogen Fluoride (HF) Gas Sensor Module
    ₹16,799View
  • Winsen ZE03-DG Electrochemical Sensor Module Detection 0-50ppm – UART/Analog Output
    ₹4,229View
  • Winsen ZE07-CO Electrochemical Carbon Monoxide Sensor Module – UART/Analog Voltage Output
    ₹1,129View
  • Winsen ZE07-H2 Electrochemical Hydrogen Gas Sensor Module – UART/Analog Voltage Output
    ₹1,509View
  • Winsen ZE15-CO Carbon Monoxide Sensor Module – UART & Analog Voltage Output
    ₹939View
  • Winsen ZE16B-CO Carbon Monoxide Gas Sensor Module – 0-500ppm, UART/PWM Output
    ₹729View
  • Winsen ZE12A-NO2 Electrochemical Gas Sensor Module – DAC & UART Output
    ₹17,759View
  • Winsen ZE12A-SO2 Electrochemical Gas Sensor Module – DAC & UART Output
    ₹17,759View
  • Winsen ZE21-H2 Hydrogen Gas Detection Module – UART Output, 0-20000ppm Range
    ₹2,259View
  • Winsen ZE29A C2H5OH Alcohol Detection Module – UART Output
    ₹3,549View
  • Winsen ZE630 Vehicle BMS H2 Hydrogen Gas Sensor Module – UART/PWM Output
    ₹1,409View
  • Winsen ZC05 Domestic Methane Gas Sensor Module – UART Output, 5V DC
    ₹699View
  • 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
  • Buzzer Module 3.3–5V
    ₹27View
Shop Gas, Air Quality & CO2 Sensors

Keep learning

ComparisonIntermediateWinsen Gas Sensor ModulesUnderstand Winsen and similar gas sensors: metal-oxide MP and MQ types, catalytic MC beads, MEMS GM modules, warm-up, load resistors, calibration and safe use.3 min read · SensorsComponent guideAdvancedElectrochemical Gas SensorsElectrochemical sensors measure one specific toxic gas, such as carbon monoxide, ammonia, hydrogen sulphide or oxygen, with much better selectivity than MQ sensors.3 min read · SensorsComponent guideAdvancedElectrochemical Gas CellsThese are bare electrochemical gas cells: CO, H2S, NH3, NO2, SO2, O3, HF, HCl and H2.4 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 ZE03, ZE07, ZE15 and ZE16B 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 Winsen ZE03, ZE07, ZE15 and ZE16 gas modules isWinsen ZE03, ZE07, ZE15 and ZE16 gas modules pinoutWiring the Winsen ZE03, ZE07, ZE15 and ZE16 gas 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 guide8 items · ₹46,912

Winsen ZE03-CO Electrochemical CO Gas Sensor Module – UART & Analog Output · Winsen ZE07-CO Electrochemical Carbon Monoxide Sensor Module – UART/Analog Voltage Output · Winsen ZE07-H2 Electrochemical Hydrogen Gas Sensor Module – UART/Analog Voltage Output · Winsen ZE15-CO Carbon Monoxide Sensor Module – UART & Analog Voltage Output · Winsen ZE16B-CO Carbon Monoxide Gas Sensor Module – 0-500ppm, UART/PWM Output · Winsen ZE12A-NO2 Electrochemical Gas Sensor Module – DAC & UART Output · Winsen ZE12A-SO2 Electrochemical Gas Sensor Module – DAC & UART Output · Winsen ZE21-H2 Hydrogen Gas Detection Module – UART Output, 0-20000ppm Range

Run itChange the inputs and watch the output

Active upload mode: one 9-byte frame per second. Byte 3 says how many decimals the value has.

Serial monitor115200 baud
Concentration 2.49

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