
ESP32 Air Quality Monitor
An ESP32-based air quality monitoring system that measures pollution levels using an MQ135 sensor and displays real-time data locally and on the cloud.
Inclusive of all taxes
- Secure payments via Razorpay
- 7-day returns on defective items
- GST invoice on every order
Free delivery on orders above ₹2,000
Delivers in 4-7 business days
Check delivery at your pincode
₹5128.00
Inclusive of all taxes
Components
7 items
Difficulty
Intermediate
Build Time
2-3 hours
Project Details
How It Works
The MQ135 sensor detects gases like CO2, NH3, alcohol, and smoke by measuring changes in its resistance. The ESP32 reads the analog output from the sensor via GPIO 34. The analog value is converted to an air quality level using predefined thresholds (e.g., <1500 = Good, 1500-2500 = Moderate, >2500 = Poor). The data is displayed on the OLED screen (if connected) and can be sent to the cloud via WiFi for remote monitoring. The system can trigger alerts or control devices like fans based on air quality levels.
Prerequisites
Basic knowledge of electronics and microcontrollers. Familiarity with Arduino IDE and ESP32 programming. Understanding of analog sensors and I2C communication. Basic soldering skills for permanent connections (optional).
What You'll Learn
Learn to connect and read data from MQ135 gas sensor
Process analog sensor readings and convert to meaningful values
Understand air quality levels and pollution measurement
Integrate ESP32 with sensors and cloud services
Build systems for monitoring environmental parameters
Key Features
Continuous measurement and display of air quality levels
Ability to add more sensors like DHT22 for temperature/humidity
Design for uploading data to cloud platforms for remote access
Uses affordable components for accessible DIY project
Features like deep sleep mode and battery operation for efficiency
What's Included in the Kit

| Component | Qty | Price |
|---|---|---|
![]() | 1 | ₹1682.00 |
![]() | 1 | ₹1184.00 |
![]() | 1 | ₹998.00 |
![]() | 1 | ₹2.00 |
![]() | 1 | ₹77.00 |
![]() | 1 | ₹171.00 |
![]() | 1 | ₹190.00 |
Operating Instructions
Pin Connections
| MCU Pin | Connected To | Purpose | Notes |
|---|---|---|---|
| 3.3V / 5V | MQ135 VCC | Power supply for sensor | MQ135 can operate at 3.3V or 5V |
| GPIO 34 | MQ135 AOUT | Analog input for sensor data | ESP32 analog input pin |
| GND | MQ135 GND | Ground connection | - |
| GPIO 21 | OLED SDA | I2C data line for OLED display | Optional component |
| GPIO 22 | OLED SCL | I2C clock line for OLED display | Optional component |
| 3.3V | OLED VCC | Power supply for OLED display | Optional component |
| GND | OLED GND | Ground connection for OLED | Optional component |
Tools Required
Safety Precautions
Handling
- ⚠Do not touch sensor heater while powered
- ⚠Avoid sensor exposure to liquids
Operating
- ⚠Ensure proper ventilation around the sensor
- ⚠Use regulated power supply to prevent damage
Electrical
- ⚠Check polarity before connecting components
- ⚠Avoid short circuits on breadboard
Frequently Asked Questions
Q:Can this detect CO₂ accurately?
Q:Can I add temperature & humidity?
Q:Can alerts be sent automatically?
Product images are for illustration purposes only. Actual products may differ in appearance, packaging, or specifications. See our Terms of Service.








