Skip to content

About

An IoT-based air quality monitoring system using ESP8266, MQ135 gas sensor, and DHT11 to measure pollution, temperature, and humidity with real-time cloud visualization.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Smart-Air-Pollution-Monitoring-Using-NodeMCU

📌 Overview

This project implements a real-time Air Quality Monitoring System using ESP8266 (NodeMCU) integrated with MQ135 gas sensor and DHT11 temperature-humidity sensor. The system continuously monitors environmental conditions and uploads sensor data to cloud platforms for remote visualization and analysis.

An LCD 16x2 with I2C interface displays live readings locally, making the system suitable for smart homes, industries, and environmental monitoring.


🔄 Block

Screenshot 2026-01-27 225017

🚀 How to Run

  1. Install Arduino IDE
  2. Add ESP8266 board support
  3. Install required sensor libraries
  4. Open AQi.ino
  5. Enter Wi-Fi credentials and API key
  6. Upload code to NodeMCU
  7. Monitor data on LCD and cloud dashboard

📚 Required Arduino Libraries

Make sure to install the following libraries in Arduino IDE before uploading the code:

Library Name Purpose
ESP8266WiFi Wi-Fi connectivity
DHT Sensor Library Read temperature & humidity data
Adafruit Unified Sensor Dependency for DHT library
LiquidCrystal_I2C Control LCD 16x2 display
ThingSpeak Send data to cloud platform (optional)
Blynk IoT dashboard integration (optional)

📥 How to Install Libraries

  1. Open Arduino IDE
  2. Go to Sketch → Include Library → Manage Libraries
  3. Search library name
  4. Click Install

🔗 Circuit Pin Connections

Component Pin Connected To (ESP8266 NodeMCU)
MQ135 Gas Sensor VCC 3.3V
MQ135 Gas Sensor GND GND
MQ135 Gas Sensor A0 A0
DHT11 Sensor VCC 3.3V
DHT11 Sensor DATA D4
DHT11 Sensor GND GND
LCD 16x2 (I2C) VCC Vin / 5V
LCD 16x2 (I2C) GND GND
LCD 16x2 (I2C) SDA D2
LCD 16x2 (I2C) SCL D1

⭐ Future Enhancements

  • Mobile app integration
  • Multiple gas sensors (CO, CO2, NH3)
  • AI-based pollution prediction
  • GPS location tagging

📡 Supported Cloud Platforms

  • ThingSpeak
  • Blynk
  • Any HTTP-based IoT service

About

An IoT-based air quality monitoring system using ESP8266, MQ135 gas sensor, and DHT11 to measure pollution, temperature, and humidity with real-time cloud visualization.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages