This is a simple firmware for an ESP8266 board such as NodeMCU to measure air quality (carbon dioxide concentration, temperature, humidity) and reporting the measurements via MQTT.
- ESP8266 NodeMCU clone devkit
- MH-Z19 carbon dioxide sensor
- AM2301 temperature and humidity sensor
Used as part of a Home Assistant setup for measuring indoor air quality.
- ESP8266 stack for Arduino development environment
- DHT sensor library: https://github.com/adafruit/DHT-sensor-library
- MH-Z19 sensor library: https://github.com/WifWaf/MH-Z19
- ESP software serial: https://github.com/plerup/espsoftwareserial/
- MQTT library: https://pubsubclient.knolleary.net/