AI Lab for the Internet of Things

From sensors to intelligent self-deciding systems: lessons, projects, architectures, interactive simulation labs and a specialist AIoT assistant.

20Lesson

MH-Z19

A CO₂ sensor using non-dispersive infrared (NDIR), more precise than economy indicators.

AdvancedChemical, gas and soil

Illustration of MH-Z19
A schematic illustration created for this section for teaching purposes; it is not a photograph of the part or of any specific product.

Educational content in scientific-draft form; a specialist should review it before it is adopted as an academic reference. No measurement or performance result that was not actually obtained is shown here.

Facts

Measured quantityCarbon dioxide concentration
Data typeDigital (serial) or PWM
Units of measurementppm
Examples of common partsMH-Z19

How it works

The gas absorbs part of the infrared at a specific wavelength, and the absorption is measured.

How to connect

Connect over a serial port (TX/RX) with power and ground, crossing the sensor TX to the microcontroller RX.

AIoT applications

  • Classroom ventilation
  • Building monitoring

Measurement and calibration issues

  • Needs periodic calibration
  • Warm-up time
  • Affected by temperature and pressure

Simulations and labs run inside your browser. Nothing you enter and none of the conversations is stored on the server. Privacy policy