Winsen MH-Z19B / MH-Z19C CO2 Sensor

A small NDIR carbon-dioxide sensor with a 3.3 V serial interface, often wired to a Grove UART socket.

Not yet testedLow confidence

No shop listed yet

Say it to PAL

“Tell me when the room needs fresh air.”

The code PAL writes

p.onSensorChange('winsen-mh-z19', '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 own an MH-Z19B or MH-Z19C.

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.
  • Automatic baseline calibration (ABC) is ON at delivery; in a room that never sees fresh air the reading drifts low over days.

About it

The Winsen MH-Z19B (and its successor MH-Z19C) is an NDIR CO2 module read over UART at 9600 8N1 with the same 9-byte checksummed frame as the MH-Z16. Supply 4.5-5.5 V (MH-Z19C: 5.0 ±0.1 V); interface level 3.3 V, 5 V compatible. Detection range 2000 or 5000 ppm (0x99 command). Automatic baseline calibration (ABC) is ON from the factory: it assumes the sensor sees fresh (~400 ppm) air at least once a day.

Where to buy

No shop listed yet.

Facts

Tested

Not yet testedLow confidence

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.

Chip

MH-Z19B

Its sensor is the Winsen MH-Z19B.

MH-Z19B datasheet

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.

See every part

Not yet testedLow confidenceCO2 / Air qualityGrove - CO2 Sensor (Winsen MH-Z16)from $97.90Not yet testedLow confidenceCO2 / Air qualitySCD30 in UART/Modbus mode (SEL pulled to VDD by hand)No shop yetTested on a real boardHigh confidencehold up a color, and it names itLight Sensorfrom $8.00