Grove - CO2 Sensor (Winsen MH-Z16)
An NDIR carbon-dioxide sensor on a Grove UART cable. Tells you when a room needs fresh air.
Say it to PAL
“Tell me when the room needs fresh air.”
The code PAL writes
p.onSensorChange('winsen-mh-z16', 'co2', (ppm) => {
if (ppm > 1000) p.log(`CO2 ${ppm} ppm - open a window`);
});When to pick it
Use for ventilation decisions and indoor air quality when you already own the Grove CO2 sensor.
Good to know
- The heater needs a 5 V supply; the data lines are 3.3 V logic. Power it from 5 V, never from a 3.3 V-only Grove port.
- Readings in the first 3 minutes after power-up (its preheat) can be off.
- Cross TX/RX: board TX -> sensor RX, board RX <- sensor TX. No reply at all usually means they are not crossed or the sensor has no 5 V.
About it
Seeed's Grove - CO2 Sensor carries a Winsen MH-Z16 NDIR sensor and answers over UART at 9600 8N1 with a 9-byte checksummed frame. Range 0-2000 ppm. The heater needs 4.5-6 V; allow 3 minutes of preheat after power-up.
Where to buy
Facts
Tested
It is in our catalog, but nobody has checked it on a real board. It may not work yet. Its driver is written, but it has not been tested on hardware yet.
Free to reuse
Every fact here is open data under CC BY 4.0. Copy it into your own docs or code, and credit Palpable. Download it
This record was last changed on November 11, 2026.