In an effort to contribute to the global awareness of air quality, I built an Air Quality Sensor equipped with a dashboard and mobile notification functionality. This project was powered by an Arduino ESP32 and utilized services like IFTTT, io.adafruit, along with multiple sensors, wires, and resistors.
Air pollution is a critical issue, causing 7 million premature deaths annually worldwide. When inhaled, pollutants can enter the bloodstream and damage vital organs. Thus, the goal was to promote better air quality awareness through this project.
The design incorporated the following components:
- Arduino ESP32: A low-power system with Wi-Fi & Bluetooth, perfect for IoT devices.
- MQ-135 Gas Sensor: Detects various gases based on resistance settings.
- GP2Y1010AU0F Dust Sensor: An optical sensor effective in detecting fine particles.
- DC-DC Boost Module: Converts a single Lithium-Ion Polymer Battery output to a stable 5V.
- Lithium-Ion Polymer Battery: A light yet powerful source with a 1200mAh capacity.
- Breadboard: A terminal array board for assembling the circuit without soldering.
- The gas sensor data is read from the A4 analog pin.
- The dust sensor data is read from the A3 analog pin.
- The DC-DC Boost Module ensures the sensors receive a stable 5V from the battery.
Design schematics were vital for accurate assembly:
The device operates through a simple pseudocode:
- Initialize and connect to Wi-Fi and io.adafruit via MQTT.
- Read sensor data and publish to io.adafruit feeds.
- Enter sleep mode for power efficiency.
Data from sensors are visualized on the io.adafruit dashboard and integrated with IFTTT for real-time notifications based on air quality readings.
The io.adafruit dashboard showcases gas and dust data feeds, displayed as data flow, line graphs, and live gauges.
IFTTT applets send notifications to my phone when dust or gas readings exceed preset thresholds.
Through this project, I aimed to provide a tool that raises awareness about air quality, empowering individuals to make informed decisions for healthier living environments.