- Raspberry pi
- SDS011 air quality monitor
-
pip install python-aqi pyserial psutil paho-mqtt
-
Add
channelID
andapiKey
into .config.txt file. (Register for free at https://thingspeak.com) -
run
python airQuality.py
- Read pm2.5, pm10. Converts them into AQI index.
- Upload data to IoT platform (e.g. https://thingspeak.com).
- Data reads and uploads every minute.
===========
===========
Credit to: https://github.com/Mjrovai/Python4DS/tree/master/RPi_Air_Quality_Sensor
More details: https://www.instructables.com/A-Low-cost-IoT-Air-Quality-Monitor-Based-on-Raspbe/