A Python 3 tool for reading, logging, and visualizing CO2 data from the MH-Z19 (or MH-Z14) NDIR sensor over UART/serial. Covers wiring, connection via USB-UART adapter, command-line usage, raw sensor commands, calibration warnings, and data visualization using plotly.js. Compatible with Raspberry Pi, ESP8266, and Arduino. The author later replaced this DIY setup with an Aranet4 commercial device in 2021.

3m read timeFrom smcleod.net
Post cover image
Table of contents
Usage #Technical Specifications MH-Z19 #Wiring #Photos #Credits #Licence #

Sort: