AQI Monitor
The Air Quality Monitor is a compact, Arduino-based device designed to measure and display real-time air quality data. It was specifically built to address rising pollution levels in Delhi NCR, providing an easy-to-use solution for society guards and residents to monitor air conditions.
The monitor continuously measures particulate matter (PM) and toxic gases, providing an accurate Air Quality Index (AQI) reading. The device displays the AQI on an OLED screen and uses very simple indicators to indicate whether the air is safe or unsafe.

Step-by-Step Working
-
Air Sampling and Detection:
-
The device uses two key sensors:
-
GP2Y1010AU0F Dust Sensor:
-
Measures particulate matter (PM) levels by emitting an LED beam into the surrounding air.
-
When particles scatter the light, a photodetector captures the reflection and converts it into an analog voltage signal.
-
The intensity of the scattered light corresponds to the PM concentration.
-
-
MQ-135 Gas Sensor:
-
Detects harmful gases like CO₂, NH₃, NOx, benzene, and alcohol vapors.
-
The sensor’s internal heating element activates chemical reactions with the gases, altering the resistance and generating an analog signal proportional to the gas concentration.
-
-
-
-
Signal Processing:
-
The Arduino Uno reads the analog signals from both sensors.
-
The analog signals are converted into digital AQI values using the Arduino’s ADC (Analog-to-Digital Converter).
-
To improve accuracy and stability:
-
The code implements averaging algorithms to smooth out fluctuations and prevent false spikes.
-
The system continuously updates the AQI every 2–3 seconds.
-
-
-
Data Display and Alert System:
-
The device uses a 0.96-inch OLED screen to display the AQI.
-
The screen shows the current air quality with color-coded indicators:
-
Safe (AQI < 100).
-
Moderate (100 ≤ AQI < 200).
-
Unsafe (AQI ≥ 200, masks recommended).
-
-