Coding for Kids

Air Quality Monitoring : Easy Arduino Project for Kids(2026)

Air Quality Monitoring : Easy Arduino Project for Kids(2026)

Air Quality Monitoring: Easy Arduino Project for Kids (2026)

 Air Quality Monitoring Model: Build a Smart “Air Detective” with Arduino

What if the air around you could tell you when it is becoming polluted?
We cannot always see harmful gases or smoke, but a simple electronic system can help us detect changes in air quality. In this STEM activity, students can build a mini air quality monitoring model using an Arduino and an MQ-135 gas sensor.

This project combines Science, Technology, Engineering, and Mathematics (STEM). Students learn how sensors detect changes in the air quality, how Arduino processes sensor signals, and how electronic outputs such as LEDs and a buzzer can communicate the result.

STEM Challenge

Can you design a device that continuously checks the surrounding air and warns people when the air becomes polluted?

The MQ-135 is commonly used in educational and hobby projects for detecting changes associated with gases and vapors such as ammonia, nitrogen oxides, smoke, benzene, and other substances. It provides an analog output that a microcontroller can read.

Materials Required

Component Quantity Purpose
Arduino UNO 1 Main controller
MQ-135 Air Quality Sensor 1 Detects changes in air/gas concentration
Breadboard 1 Circuit assembly
Jumper wires As required Connections
Red LED 1 Indicates poor air condition
Yellow LED 1 Indicates moderate condition
Green LED 1 Indicates relatively better condition
220 Ω resistors 3 LED protection
Buzzer 1 Warning indication
USB cable 1 Programming and power
Computer 1 Arduino IDE programming

The MQ-135 module generally provides VCC, GND, analog output (AOUT), and digital output (DOUT). For this student model, the analog output is useful because Arduino can read changing sensor values rather than simply detecting an ON/OFF threshold. (Waveshare)

 Circuit Assembly

The basic connections are:

MQ-135 Arduino UNO
VCC 5V
GND GND
AOUT A0
DOUT Not connected

Output connections

  • Green LED → Arduino pin 8
  • Yellow LED → Arduino pin 9
  • Red LED → Arduino pin 10
  • Buzzer → Arduino pin 11
  • Each LED should be connected through a 220 Ω resistor.

The MQ-135 module is commonly interfaced with Arduino UNO by connecting AOUT to an analog input such as A0.

Air Quality Monitoring : Easy Arduino Project for Kids(2026)

MQ-135 MODULE

⚙️ Step-by-Step Procedure

Step 1: Understand the Sensor

The MQ-135 contains a heated sensing element. When the surrounding concentration of detectable gases changes, the sensor’s electrical characteristics change. The module converts this change into an output voltage that Arduino can read. 

Student question:
If polluted air is invisible, how can an electronic sensor detect it?

This introduces students to the idea of indirect measurement—electronics can convert environmental changes into measurable electrical signals.

Step 2: Build the Circuit

Place the Arduino and breadboard on your working table. Insert the MQ-135 module and connect:

VCC → 5V
GND → GND
AOUT → A0

Then connect the three LEDs and buzzer according to the connection table.

Air Quality Monitoring : Easy Arduino Project for Kids(2026)

Step 3: Upload the Program

Open Arduino IDE, select the correct Arduino UNO board and COM port, and upload the following beginner-friendly program:

int airSensor = A0;

int greenLED = 8;

int yellowLED = 9;

int redLED = 10;

int buzzer = 11;

void setup() {

  Serial.begin(9600);Air Quality Monitoring : Easy Arduino Project for Kids(2026)

  pinMode(greenLED, OUTPUT);

  pinMode(yellowLED, OUTPUT);

  pinMode(redLED, OUTPUT);

  pinMode(buzzer, OUTPUT);

}

void loop() {

  int airValue = analogRead(airSensor);

  Serial.print(“Air Sensor Value: “);

  Serial.println(airValue);

  // Example classroom thresholds.

  // These must be calibrated for the particular sensor.

  if (airValue < 250) {

    digitalWrite(greenLED, HIGH);

    digitalWrite(yellowLED, LOW);

    digitalWrite(redLED, LOW);

    digitalWrite(buzzer, LOW);

    Serial.println(“Air condition: Relatively good”);

  }

  else if (airValue < 500) {

    digitalWrite(greenLED, LOW);

    digitalWrite(yellowLED, HIGH);

    digitalWrite(redLED, LOW);

    digitalWrite(buzzer, LOW);

    Serial.println(“Air condition: Moderate”);

  }

  else {

    digitalWrite(greenLED, LOW);

    digitalWrite(yellowLED, LOW);

    digitalWrite(redLED, HIGH);

    digitalWrite(buzzer, HIGH);

  Serial.println(“Warning: High sensor reading!”);

  }

  delay(1000);

}

Step 4: Observe the Readings

Air Quality Monitoring : Easy Arduino Project for Kids(2026)

Open Serial Monitor at 9600 baud. Arduino will display the sensor’s analog reading every second.

Students can record the readings in a table:

Environment Sensor Reading Observation
Normal classroom air ____ ____
Near an open window ____ ____
Outdoor location ____ ____
Controlled safe test source ____ ____

Important: These example thresholds are not official AQI limits. They are simple classroom thresholds for demonstrating how a sensor-reading-based warning system works. MQ-135 modules require appropriate warm-up/calibration, and their response depends on the gases, environment, and sensor module. 

Step 5: Test the Warning System

Move the sensor between different environments and observe the LEDs and buzzer. Never expose the sensor to dangerous gases, flames, or toxic chemicals.

Ask students:

  • Why did the sensor value change?
  • Which environment produced the highest reading?
  • Can we improve the accuracy?
  • Can we send the reading to a mobile phone?

This turns a simple circuit into an engineering investigation.

Real-Time Applications

Air Quality Monitoring : Easy Arduino Project for Kids(2026)

Air-quality monitoring technology has applications in many areas:

  1. Smart Homes: Monitoring changes in indoor air conditions.
  2. Schools: Educational monitoring stations can help students study environmental conditions.
  3. Industrial Areas: Sensors can contribute to systems that monitor gases and trigger warnings.
  4. Smart Cities: Networked environmental sensors can collect information from different locations.
  5. IoT Monitoring: An Arduino/ESP32-based system can transmit sensor readings to an online dashboard for remote observation. Arduino Project Hub also demonstrates air quality monitoring projects using microcontrollers and environmental sensors. (Arduino Project Hub)
  6. Research Projects: Students can compare readings at different locations and study patterns of air quality over time.

Frequently Asked Questions

  1. What does the MQ-135 detect?

It is a broad gas sensor commonly used to detect changes associated with several gases and vapors, including ammonia, nitrogen oxides, smoke, and benzene. 

  1. Does MQ-135 directly measure AQI?

No. A raw MQ-135 analog value should not be presented as an official AQI value. Accurate air-quality measurement requires appropriate sensors, calibration, and pollutant-specific methods.

  1. Why does the sensor need heating?

The MQ-135 uses a heated sensing element, and the sensor needs warm-up time before readings become more stable. Some modules specify a substantial initial burn-in period for stabilization. 

  1. Can we connect a display?

Yes. Students can extend the project by adding an OLED or LCD display to show sensor readings and system status.

  1. Can this become an IoT project?

Yes. Replace or supplement the Arduino UNO with an ESP32 and send readings to an online dashboard.

Conclusion

What if students could turn invisible pollution into something they can actually see and understand? That is the power of the Air Detective! 

By combining an Arduino UNO with an MQ-135 gas sensor, students can build a simple model that detects changes in air quality and responds through LEDs and a buzzer. More importantly, this project transforms an everyday environmental problem into a hands-on STEM investigation.

The real learning begins when students take their Air Detective to different places, inside the classroom, outdoors, near traffic, or in a garden—and compare the sensor readings. They can record the data, identify patterns, ask questions, and think about how human activities influence the air quality around us.

This project also opens the door to a bigger question: How can technology help us create healthier communities? Air quality can affect respiratory health, so understanding air quality is an important step toward environmental awareness.

The MQ-135 model is an educational air quality indication system, not a certified AQI or medical device. Its readings should be used to learn about changes and patterns rather than to make health diagnoses.

From a tiny sensor to a big environmental idea, the Air Detective proves that STEM is not just about building circuits—it is about using technology to observe, investigate, and solve real-world problems.

So, are you ready to become an Air Detective and start investigating the air around you?

Explore More…

Real Projects, Real Results

From hands-on learning to competition wins—see what Chitti students achieve

Find a class near you

Pick your city, district or county. Each page has local class times, kit shipping notes, and a trial button for families in that place.

India & US cities

India states

United States states