Mini Project Final
Mini Project Final
Mini Project Final
ALERT AND MONITORING SYSTEM FOR AIR POLLUTION AND NOISE LEVEL
Submi ed in the par al fulfillment of the requirement for the award of the
Degree
BACHELOR OF ENGINEERING
IN
ELECTRONICS AND COMMUNICATION ENGINEERING
Submi ed by
SHRUTI SAHAY 1BI20EC140
SRIYA DIPTEE 1BI20EC151
SRUTHI K N S CHINTA 1BI20EC153
SUSHANT SHIL 1BI20EC157
Prof. J.C.Narayanas
Assistant Professor
Department of Electronics and Communication
Engineering
Carried out at
BANGALORE INSTITUTE OF TECHNOLOGY
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING K R Road, V V
Pura, Bengaluru - 560 004
2023-2024
BANGALORE INSTITUTE OF TECHNOLOGY
(Affiliated to Visvesvaraya Technological University, Belagavi)
K R Road, V V Pura, Bengaluru-560 004
CERTIFICATE
Certified that the Mini project entitled “Alert and monitoring system for air pollution and noise levels”
work carried out by Shruti Sahay(1BI20EC140), Sriya Diptee(1BI20EC151), Sruthi K N S Chinta
(1BI20EC153), Sushant Shil (1BI20EC157) Bonafide student of Bangalore Institute of Technology in
partial fulfillment for the award of Bachelor of Engineering Degree in Electronics and Telecommunication
Engineering of the Visvesvaraya Technological University, Belagavi during the year 2021-2022. It is
certified that all corrections/suggestions indicated for internal assessment have been incorporated in the
report deposited in the Department Library. The Mini project Report has been approved as it satisfies the
academic requirements in respect of Mini project work prescribed for the said Degree.
Guide HOD
Prof. J.C.Narayanaswamy Dr.Hemanth Kumar A R
External Viva:
1. Internal:
2. External:
ACKNOWLEDGEMENT
It would be our privilege to express our heartfelt gratitude and respect to thank all those who guided us in
the completion of the Mini Project work. We are highly indebted to Rajya Vokkaligara Sangha trust for
introducing a great educational institute for studies.
We would like to thank our Head of the Department, Department of Electronics and Communication
Engineering, Dr.HEMANTH KUMAR A.R, for his constant encouragement and support throughout
the course of engineering at the institution.
We would like to express our heartfelt gratitude to our mini project coordinator and internal guide Prof.
J.C.Narayanaswamy Associate Professor, Department of Electronics and Communication
Engineering, for his constant guidance for the project.
We are grateful to all the teaching and non-teaching staff of the Department of Electronics and
Communication Engineering, for their constant encouragement and support.
ABSTRACT
Noise pollution impacts millions of people daily. The most common health problem it causes is Noise
Induced Hearing Loss (NIHL). Exposure to loud noise can also cause high blood pressure, heart disease,
sleep disturbances, and stress. Many children who live near noisy airports or streets have been found to
suffer from stress and other problems, such as impairments in memory, attention level, and reading skill.
Studies have shown that loud noises can cause caterpillars' dorsal vessels (the insect equivalent of a heart)
to beat faster, and cause bluebirds to have fewer chicks. Animals use sound for a variety of reasons,
including to navigate, find food, attract mates, and avoid predators.
Pollution accounted for nearly 1.7m premature deaths in India in 2019, or 18% of all deaths, according
to a study that lays bare the human cost of the country’s toxic urban air. The data shows that pollution-
related deaths in India are on the rise, increasing from 1.24m in 2017 to 1.67m in 2019.Six of India’s
cities are among the top 10 most polluted in the world, according to a recent World Air Quality report,
with Delhi being top in the list. Hence, this project aims at detecting the harmful levels of gases,
temperature and noise levels present in the environment and alert the higher authorities to take quick
action to suppress its adverse effects on ecosystem.
TABLE OF CONTENTS
3. Flow chart 5
5. DHT11 sensor 7
7. Sound sensor 9
8. Wifi module 10
CHAPTER 1
INTRODUCTION
Air pollution and noise pollution have a negative impact on all of society — but some groups are
more affected than others. Lower socioeconomic status is generally associated with poorer
health, and both air and noise pollution contribute to a wide range of other factors influencing
human health. Noise pollution impacts millions of people daily. The most common health
problem it causes is Noise Induced Hearing Loss (NIHL). Exposure to loud noise can also cause
high blood pressure, heart disease, sleep disturbances, and stress.
These health problems can affect all age groups, especially children. Many children who live
near noisy airports or streets have been found to suffer from stress and other problem such as
impairments in memory, attention level, according to the World Health Organization (WHO),
some of the world's most polluted cities are Karachi, Pakistan; New Delhi, India; Beijing, China;
Lima, Peru; and Cairo, Egypt. Nearly 2.5 million people (about twice the population of Hawaii)
die worldwide each year from the effects of outdoor or indoor air pollution. At the end of October
1948, the communities of Donora and Webster in Pennsylvania were visited by a smog that
changed the face of environmental protection in the United States. Conservative estimates
showed that 20 individuals died, while an additional 5900—43% of the population of Donora—
were affected by the smog.
Since pollution parameters are vital to maintain a healthy environment, we suggest a affordable
Arduino based hardware which is integrated with IoT for real time monitoring and alert system
of the air and noise pollution parameter system. This monitors the real time data and collects it
through various sensors used and sends it to the cloud. The data is collected from the cloud to
thingsspeak.com where the data is pictorially represented in the form of graphs. In addition to
this, if the values cross the threshold value an alert email is given.
1.1 OBJECTIVES
Monitor air pollution and noise level: The sensors used in the project will measure
the level of pollutants and noise in the air and transmit the data to the cloud
platform.
Provide real-time data: The data will be displayed on a cloud platform such as
Thing Speak, where it can be accessed by anyone with an internet connection.
Raise awareness: By providing real-time data on air pollution and noise levels, the
project aims to raise awareness about the harmful effects of pollution.
Support decision-making: The data collected by the project can be used by
policymakers to make informed decisions on pollution control measures.
Develop a real-time monitoring system for air pollution and noise levels.
Use sensors to measure the level of pollutants and noise in the air.
Identify patterns and trends in air pollution and noise level to help in identifying
the sources of pollution and taking corrective actions to reduce pollution.
CHAPTER 2
PROPOSED METHODOLOGY
The proposed system consists of two main parts: hardware and software. The hardware
includes temperature and humidity sensors, air quality sensors, and sound sensors, a power
supply and an Arduino UNO. The software includes the Things Speak server and the Arduino
Software (IDE) as shown in figure 2.1.
The hardware consists of sensors that measure values in real time, an Arduino UNO that
converts analogue values to digital values.
The Arduino UNO, to which the sensors are linked, processes the data sensed. It helps to
convert analogue values to digital ones and is programmed using the Arduino IDE. The sensors
will continuously measure the level of pollutants and noise in the air, and the data will be
acquired using an IoT device such as an ESP8266 or Arduino. The data will be stored on the
device until it is ready to be transmitted to the cloud platform. The temperature sensor ranges
from –20 to 60 degrees Celsius. The acquired sensor data will be transmitted to the Thing
Speak cloud platform. The Thing Speak platform will receive and store the sensor data in real-
time, and it will be displayed on a dashboard for data visualization. Users can access the
dashboard to view real-time data on air pollution and noise levels.
2.1 Block diagram
MCQ135 sensor:
The MCQ135 is an air quality sensor which is sensitive to ammonia, sulphide and
benzene steam gases. It has good sensitivity and long-life span, low cost and simple drive
circuit. The sound sensors detect the sound levels to display it.
MQ7 sensor:
High sensitivity to carbon monoxide. Stable and long life. They are used in gas detecting
equipment for carbon monoxide (CO) in families and industry or car.
MQ4 sensor:
High sensitivity to CH4,Natural gas. Small sensitivity to alcohol, smoke. Fast response.
Stable and long life. Simple drive circuit. They are used in gas leakage detecting equipment
in family and industry, are suitable for detecting CH4, Natural gas. LNG, avoid the noise of
alcohol and cooking fumes and cigarette smoke.
MQ2 sensor:
Wide detecting scope Fast response and High sensitivity. Stable and long-life Simple drive
circuit. They are used in gas leakage detecting equipment in family and industry, are
suitable for detecting LPG, I-butane, propane, methane, alcohol, Hydrogen, smoke.
Thing Speak:
Thing Speak server is an open data platform and API for the Internet of Things that collects,
store, analyze, visualize, and act on data from sensors.
CHAPTER 3
HARDWARE DESCRIPTION
COMPONENTS REQUIRED
Arduino UNO board
Temperature and humidity sensor
Air quality sensor
SPECIFICATIONS
The DHT11 is a commonly used Temperature and humidity sensor that comes with a dedicated
NTC to measure temperature and an 8-bit microcontroller to output the values of temperature and
humidity as serial data. The DHT11 is a commonly used Temperature and humidity sensor.
The sensor comes with a dedicated NTC to measure temperature and an 8-bit microcontroller to
output the values of temperature and humidity as serial data. The sensor can measure temperature
from 0°C to 50°C and humidity from 20% to 90% with an accuracy of ±1°C and ±1%.
SPECIFICATIONS
The MQ-135 Gas sensor can detect gases like Ammonia (NH3), sulfur (S), Benzene (C6H6),
CO2, and other harmful gases and smoke. Like other MQ series gas sensors, this sensor also has a
digital and analog output pin. When the level of these gases goes beyond a threshold limit in the
air the digital pin goes high. This threshold value can be set by using the on-board potentiometer.
The analog output pin outputs an analog voltage which can be used to approximate the level of
these gases in the atmosphere.
The MQ135 air quality sensor module operates at 5V and consumes around 150mA. It requires
some pre-heating before it can give accurate results.
SPECIFICATIONS
Sound sensors, also known as sound level meters or acoustic sensors, can be used in air pollution
and noise level monitoring systems to measure the level of noise in the environment. They can
detect sound waves and convert them into electrical signals, which can be used to determine the
sound pressure level in decibels (dB).
SPECIFICATIONS
1. Operating Voltage: 5V
2. Operating current: 30mA
3. Response time: <500msec
4. Operating Temperature: -30~+80°C
By using a Wi-Fi module, the data collected by the sensors can be transmitted in real-time to the
cloud platform, where it can be analyzed and visualized. This allows for remote monitoring and
management of the air pollution and noise level monitoring system and provides access to the data
from anywhere with an internet connection.
SPECIFICATIONS
The MQ-2 sensor is a type of gas sensor that can be used to detect various types of gases in the
air, including smoke, propane, butane, methane, alcohol, and hydrogen. The sensor works by
detecting the level of the gas in the air using a tin dioxide (SnO2) semiconductor element. When
the gas is present, it reacts with the SnO2 element, causing changes in the resistance of the sensor.
These changes in resistance are then measured and converted into an output voltage signal, which
can be processed by a microcontroller.
SPECIFICATIONS
SPECIFICATIONS
Chapter 4
SOFTWARE REQUIREMENTS
4.1 Arduino ide software:
The program code written in Arduino IDE is known as a sketch. This IDE
contains the following parts in it.
Text editor: This is where the interpreted code can be written using a
simplified version of C++ programming language.
Message section: It shows errors and gives feedback on saving and
exporting the code.
Text: The soothe displays text output by the Arduino environment along
with complete error messages and other information
Console Toolbar: This toolbar encompasses various buttons like Verify,
Upload, New, Open, Save and Serial Monitor. On the bottom right-hand
corner of the window there displays the Development Board and the Serial
Port in use.
Thing Speak is an Internet of Things (IoT) platform that allows users to collect, store, analyze, and
visualize data from connected devices. It is a free and open-source platform that can be used to
build IoT applications, especially those that require real-time data monitoring and analysis. Here
are some features of Thing Speak:
Features:
Easy to use API for device connectivity
Real-time data visualization and analytics
Customizable charts, gauges, and maps for data representation
Integration with MATLAB for data analysis
Email alerts and notifications for data thresholds and events
Remote control and interaction with connected devices
Data security and privacy through SSL encryption and user access control
Features
CHAPTER 5
RESULTS
CHAPTER 6
The project demonstrates the use of sensors such as the DHT11 sensor for temperature and
humidity measurement, smoke sensor for detecting smoke, sound sensor for measuring sound
levels, and air quality sensor for monitoring air quality.
The data from these sensors are collected and transmitted to the Thing Speak platform, which
provides a graphical representation of the data and enables users to monitor the environmental
parameters remotely.
In conclusion, the project is a great example of how IoT technology can be used to monitor
and control various environmental parameters.
This project has a lot of potential for future development and improvement. Here are some
possible directions for future work on this project:
REFERENCES
[2] Samer Mansour; Nidal Nasser; Lutful karim; Asmaa Ali. "Wireless Sensor Network-
based air quality monitoring system". February 2014
https://ieeexplore.ieee.org/document/6785394/authors#authors.
[3] Sayantani Bhattacharya; S. Sridevi; R. Pitchiah. "Indoor air quality monitoring using
wireless sensor network“. December 2012
https://ieeexplore.ieee.org/document/6461713.
Appendix
Program
#include <DHT.h>
#include <SoftwareSerial.h>
#include <dht.h>
#define DHTTYPE DHT11 // we are using the DHT11 sensor
#define DHTPIN A2
DHT dht(DHTPIN, DHTTYPE);
int smokeA1 = A1;
float sensorValue;
const int AOUTpin = A0; //the AOUT pin of the CO sensor goes into analog pin A0 of the
arduino
const int DOUTpin = 8; //the DOUT pin of the CO sensor goes into digital pin D8 of the
arduino
//const int ledPin=13;//the anode of the LED connects to digital pin D13 of the arduino
int limit;
int value;
const int A3_Pin = 3; // Connect AO of MQ4 with Analog channel 0 pin (A0) of Arduino
const int DO_Pin = 7; // Connect DO of MQ4 with Digital pin 8 (D8) of Arduino
int threshold_value; // A variable to store digital output of MQ4
int A3_Out; // stores analog output of MQ4 sensor
int sensorValuee;
int digitalValue;
int Analog_Pin = A5;
int Digital_Pin = 6;
#define RX 2
#define TX 3
String AP = "320"; // AP NAME
String PASS = "jatin@123"; // AP PASSWORD
String API = "6FURLLNKTXE95C0C"; // Write API KEY
String HOST = "api.thingspeak.com";
String PORT = "80";
String field = "field1";
int countTrueCommand;
int countTimeCommand;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
esp8266.begin(115200);
sendCommand("AT", 5, "OK");
sendCommand("AT+CWMODE=1", 5, "OK");
sendCommand("AT+CWJAP=\"" + AP + "\",\"" + PASS + "\"", 20, "OK");
dht.begin();
pinMode (smokeA1, INPUT);
Serial.println("Gas sensor is giving you a warning now");
delay(1000); //Allows the MQ2 Sensor some time to react
pinMode(DOUTpin, INPUT);//sets the pin as an input to the arduino
pinMode(DO_Pin, INPUT); // Configure D8 pin as a digital input pin
Serial.begin(9600); // sets the serial port to 9600
pinMode(13, INPUT);
pinMode(Analog_Pin, INPUT);
pinMode(Digital_Pin, INPUT);
void loop() {
delay(100);
String getData = "GET /update?api_key=" + API + "&field1=" + getTemperaturevalue() +
"&field2=" + getHumidvalue() + "&field3=" + getsmokevalue() + "&field4=" + getcovalue() +
"&field5=" + getnaturalgasvalue() + "&field6=" + getairpollutionvalue() + "&field7=" +
getsoundvalue();
sendCommand("AT+CIPMUX=1", 5, "OK");
sendCommand("AT+CIPSTART=0,\"TCP\",\"" + HOST + "\"," + PORT, 15, "OK");
sendCommand("AT+CIPSEND=0," + String(getData.length() + 4), 4, ">");
esp8266.println(getData); delay(1500); countTrueCommand++;
sendCommand("AT+CIPCLOSE=0", 5, "OK");
}
/////////////////////////////////////////////// FUNCTIONS//////////////////////////////////////////////////////
String getTemperaturevalue() {
// dht.read(DHTPIN);
Serial.print("Temperature(C)=");
float t = dht.readTemperature();
Serial.println(t);
delay(50);
Serial.println("----------------------------------------------------------------");
return String(t);
}
String getHumidvalue()
{
//dht.read(DHTPIN);
Serial.print("Humidity in%=");
float h = dht.readHumidity();
Serial.println(h);
delay(50);
return String(h);
}
String getsmokevalue() {
sensorValue = analogRead(smokeA1); // read analog pin A0
Serial.println("");
delay(50);
return String(sensorValue);
}
String getcovalue() {
value = analogRead(AOUTpin); //reads the analaog value from the CO sensor's AOUT pin
limit = digitalRead(DOUTpin); //reads the digital value from the CO sensor's DOUT pin
Serial.print(" CO value: ");
Serial.println(value);//prints the CO value
Serial.print("Limit: ");
Serial.println(limit);//prints the limit reached as either LOW or HIGH (above or underneath)
delay(100);
return String(value);
String getairpollutionvalue() {
sensorValuee = analogRead(4); // read analog input pin 0
digitalValue = digitalRead(13);
Serial.print("air quality:");
Serial.println(sensorValuee, DEC); // prints the value read
Serial.println(digitalValue, DEC);
delay(100);
return String(sensorValue);
}
String getnaturalgasvalue() {
A3_Out = analogRead(A3_Pin); // Take Analog output measurement sample from AO pin of
MQ4 sensor
threshold_value = digitalRead(DO_Pin); //Read digital output of MQ4 sensor
Serial.print("Methane Conentration: ");
Serial.println(A3_Out);//prints the methane value
Serial.print("threshold_value: ");
}
String getsoundvalue() {
float Analogg;
int Digitall;
Serial.print("sound level:");
Serial.print(Analogg, 4);
Serial.print("dB,5");
Serial.print("Limit :");
if (Digitall == 1)
{
Serial.println(" reached ");
}
else
{
Serial.println(" Not yet reached ");
}
delay (200);
return String(Analogg);
}
countTimeCommand++;
}
if (found == true)
{
Serial.println("OYI");
countTrueCommand++;
countTimeCommand = 0;
}
if (found == false)
{
Serial.println("Fail");
countTrueCommand = 0;
countTimeCommand = 0;
}
found = false;
}
PEO1: Solve complex technical problems and design systems that are useful to society by
applying the fundamental scientific principles that underpin the Telecommunication
Engineering profession.
PEO2: Graduates work productively as Telecommunication Engineers, including supportive
and leadership roles on multidisciplinary teams.
PEO3: Be sensitive to the consequences of their work, both ethically and professionally, for
productive professional careers.
PSO1: Analyse and Design Analog & Digital modules for a given specification and function.
PSO2: Implement functional blocks of hardware-software co-designs for Embedded Systems,
Signal Processing, Communication and Networking Applications.
Program Outcomes
PO 2: Problem Analysis: Identify, formulate, review research literature, and analyse complex
engineering problems reaching substantiated conclusions using first principles of mathematics,
natural sciences.
PO 5: Modern tool usage: Create, select, and apply appropriate techniques, resources, and
modern engineering and IT tools including prediction and modelling to complex engineering
activities with an understanding of the limitations. PO 8: Ethics: Apply ethical principles and
commit to professional ethics and responsibilities and norms of engineering practice.
PO 8: Ethics: Apply ethical principles and commit to professional ethics and responsibilities
and norms of engineering practice.
PO12. Life-long Learning: Life-long learning: Recognize the need for and have the
preparation and ability to engage in independent and life-long learning in the broadest
context of technological change.
Course Outcomes
After completing this course, students will be able to:
CO2: Develop hardware and/or software modules for the identified problem statement.
CO3: Collaborate with teammates and communicate effectively to manage all aspects of the
Project including finance, time and resources.
CO-PO Mapping: