This is an Arduino software implementation for the AirGradient DIY Air Quality Sensor Pro, PCB version 4.2. I have paused development for this project.
I created this fork of AirGradient's Arduino code prior to their implementation of MQTT and local web server support. My intention was to add that functionality while also bringing in other software development best practices such as automated testing and Continuous Integration and patterns like SOLID. Click here for detailed documentation about the implementation.
Please feel free to use this project as an example of applying modern software development best practices to Arduino projects.
- Download and Install the Arduino IDE, Arduino CLI, or VS Code with the Arduino extension to your system.
- Clone this repo or download the latest release (a zip of the source code).
- Open
airgradient_mqtt.ino
with your chosen Arduino tools. - Install all required Arduino reference libraries.
- Plug in the microcontroller for your AirGradient (such as an ESP8266 Wemos LOLIN D1 mini) and upload the sketch to the controller.