Smart Air Quality Monitoring System
Smart Air Quality Monitoring System
System
Group Members:
1. Jayesh Pathak – 22104B0012
2. Aditya Bhagwat – 22104B0009
3. Dhruv Jain – 22104B0028
4. Akansha Tandale – 22104B0017
1. Introduction
Air quality has become an increasingly important factor in ensuring
healthy living environments. Monitoring indoor and outdoor air quality can
help in early detection of hazardous pollutants such as carbon monoxide,
smoke, and other harmful gases. This project describes a smart air quality
monitoring system that integrates multiple sensors to monitor
environmental parameters including temperature, humidity, and gas
concentrations. The system is built around an Arduino Uno microcontroller
and utilizes a DHT11 sensor for temperature and humidity readings, an
MQ-7 sensor for carbon monoxide detection, and an MQ-2 sensor for
smoke and combustible gas detection.
2. Objectives
Monitor environmental conditions: Capture temperature and
humidity using the DHT11 sensor.
Detect hazardous gases: Use the MQ-7 sensor to monitor carbon
monoxide levels and the MQ-2 sensor to detect the presence of
smoke and other flammable gases.
Provide real-time data: Transmit sensor readings to a serial
monitor for real-time monitoring.
Potential integration: Lay the groundwork for future integration
with alert systems (e.g., alarms, SMS notifications, or IoT platforms).
3. System Components
3.1 Arduino Uno
The Arduino Uno is chosen for its simplicity, community support, and ease
of interfacing with multiple sensors.
3.2 Sensors
5. Software Implementation
#include <DHT.h>
void setup() {
// Initialize Serial Communication
Serial.begin(9600);
// Initialize DHT11 sensor
dht.begin();
Serial.println("Smart Air Quality Monitoring System Initialized");
}
void loop() {
// Reading temperature and humidity from DHT11
float temperature = dht.readTemperature(); // in Celsius
float humidity = dht.readHumidity();
// Check if any reads failed and exit early (to try again).
if (isnan(temperature) || isnan(humidity)) {
Serial.println("Failed to read from DHT sensor!");
delay(2000);
return;
}
// Read gas sensor values from MQ-7 and MQ-2
int mq7_value = analogRead(MQ7_PIN); // Raw analog value for CO concentration
int mq2_value = analogRead(MQ2_PIN); // Raw analog value for Gas/Smoke
concentration
7. Conclusion
This project demonstrates a basic yet effective approach to building a
smart air quality monitoring system using an Arduino Uno and multiple
sensors. By combining the DHT11, MQ-7, and MQ-2 sensors, the system
can monitor temperature, humidity, carbon monoxide, and smoke/gas
levels in real-time. With further calibration and integration of
communication modules, the system can be extended to notify users of
poor air quality or potential hazards, thereby contributing to safer living
environments.
8. Future Enhancements
Calibration and Conversion: Develop and implement calibration
routines for the MQ sensors to convert raw analog readings into
meaningful concentration units (e.g., ppm).
Data Logging: Integrate an SD card module or IoT connectivity
(e.g., WiFi or GSM) to log data for long-term analysis.
Alert Mechanism: Incorporate buzzer alarms, LEDs, or wireless
notifications to alert users when pollutant levels exceed safe
thresholds.
User Interface: Develop a web or mobile application for remote
monitoring of the sensor data.