The PurpleAir II is an accurate, low-cost air quality monitor that publishes sensor readings to both an online map and a json endpoint. However, this does not allow for at-a-glance, visual air quality monitoring.
This simple script uses a PurpleAir II Air Quality Monitor, Raspberry Pi, and a breadboard with an LED to visually monitor air quality. The LED blinks slowly if air quality is concerning and quickly when air quality is bad, alerting us to open a window.
You will need to connect an LED (make sure to use a resistor) to a Raspberry Pi's GPIO pins and set the script to run via cron jobs.
- Add error logging functionality.
- Track unsuccesful requests,
- Build dashboard in colab to read and graph logs
- Compare indoor sensor readings with nearby outdoor sensor readings