SlideShare a Scribd company logo
© 2022, AJCSE. All Rights Reserved 11
RESEARCH ARTICLE
Design and Implementation of Smart Environmental Air Pollution Monitoring
System (SEAPMS) based on IoT
Raghad Hazim Alshekh
Department of Computer Engineering, University of Mosul, Mosul, Iraq
Received on: 10/12/2021; Revised on: 11/01/2022; Accepted on: 01/02/2022
ABSTRACT
A Smart Environmental Air Pollution Monitoring System (SEAPMS) based on internet of things
(IoT) has been built for monitoring the concentrations of major air pollutant gases, as well as a fire
extinguishing system for fire detection and prevention. Using a network of sensors, the SEAPMS detects
gas concentrations such as carbon monoxide CO, carbon dioxide CO2
, methane CH4
, dust, smoke,
temperature, and humidity. The sensors will collect data on numerous environmental characteristics
and send it to particle photons, which will compare it to a predetermined threshold for each sensor then
sends it to a special IoT platform known as UBIDOTS. UBIDOTS sends data to the cloud then they will
be realized and virtualized to be displayed. The fire extinguishing system will activate when the smoke
concentration exceeds its threshold limit value.
Key words: Internet of things, Smart Environmental Air Pollution Monitoring System, Particle
photon, Sensors, UBIDOTS, Message Queuing Telemetry Transport
INTRODUCTION
According to the American Social Medical
Association for Industrial Health, air pollution is
defined as the presence of impurities or pollutants
that have fallen into the air, whether by nature or
man, in sufficient quantity and time to disturb the
many people exposed to this air, causing harm to
public health and property of humans, animals,
and plants.[1]
Acidification, global warming,
ozone layer depletion, and climate change are
all environmental repercussions of air pollution,
resulting in dryness and vegetation damage.[2]
Air
pollution promotes respiratory problems such as
asthma, pneumonia, and bronchitis in humans.
Pregnancy exposure to high levels of air pollution
causes miscarriage, early delivery, autism, and
asthma in children.[3]
As a result, demand for air
pollution monitoring (APM) systems is increasing.
The conventional air automatic monitoring system
is distinguished by very sophisticated equipment
technology, huge bulk, instability, and expensive
cost. Due to the high cost and weight, large-
scale installation is unfeasible. This system is
Address for correspondence:
Raghad Hazim Alshekh
E-mail: raghad.h.alshekh@uomosul.edu.iq
only available for installation in key monitoring
locations of a few significant enterprises.
This paper provides a way for overcoming the
drawbacks of standard monitoring systems
and detection methods while simultaneously
cutting test costs by merging internet of things
(IoT) technology with APM. The IoT is a more
exemplary new path in the field of IT, a revolution
in the conversion of data from things to things,
from human to human, and from human to
things. It was created in 1998 and Kevin Ashton
first introduced the term “IoT” in 1999.[4]
IoT
architecture consisting of three layers, as shown
in Figure 1, application layer, network layer, and
perception layer. The application layer uses smart
cloud computing technologies to extract valuable
information from a large amount of data processing
and also provides a link between IoT and users.[5,6]
The network layer deals with network operations,
while the responsible sensing layer is assembling
the information.[7]
There are many reasons explained in Table 1 for
choosing this APM technology.
Over the past few decades, there has been a
rapid surge in the development of APM systems.
The applications of these systems are regarded
as robust, and they are always a challenge for
inventors. These systems must be well-designed to
Available Online at www.ajcse.info
Asian Journal of Computer Science Engineering 2022;7(1):11-21
ISSN 2581 – 3781
AJCSE/Jan-Mar-2022/Vol 7/Issue 1 12
Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT
meet time restrictions while executing complicated
jobs.[9]
The Smart Environmental APM System
(SEAPMS) in this research contains two parts;
the first part is the hardware components and the
second part is the software programs. The sensors
are programmed using the Particle IDE program
and the programming language (C++). The data
should be available in real time on the UBIDOTS
IoT platform, the structure of the system is shown
in Figure 2.
The rest of this paper is structured as follows:
Section 2 discusses the background and related
works, while Section 3 describes the system design
analysis. Section 4 describes implementation of
the system, Section 5 shows the analysis of the fire
extinguishing system design, Section 6 shows the
implementation if the fire extinguishing system
design, Section 7 shows the system’s flowchart
where Section 8 shown the results, and finally,
Section 9 shows the conclusion.
BACKGROUND AND RELATED WORKS
We discovered through a review of previously
designed APM systems and fire extinguishing
systems that Manna et al.[10]
designed an APM
system based on IoT to measure pollution on
streets and track vehicles that pollute beyond
a predetermined limit by combining a wireless
sensor network (WSN) based on IEEE 802.15.4
and electrochemical toxic gas sensors, as well as
the use of a radio frequency identification (RFID)
tagging system. Continuous air quality monitoring
and the use of multiple gas sensors, such as carbon
monoxide, sulfur dioxide, nitrogen dioxide,
methane, and so on. The locations that had a high
volume of traffic were identified to be monitored.
For each location, the RFID reader communicated
with Arduino and sends the RFID tag number that
it was read and data were printed on a terminal or
sent the data to a server.
Dong et al.[11]
created a wireless automatic fire
alarm system with low-power consumption to
provide rapid fire detection and alarm as well
as state supervision of fire-fighting capabilities.
Zheng et al.[12]
designed an APM system based
on IoT technology using low-power area
network, which is established on the IEEE
802.15.4 k regulation, is used to get ubiquitous
communication between the monitoring nodes
and the access point. A particulate matter (PM)
sensor was utilized to measure PM 2.5, as well
as a temperature and humidity sensor. Sensors, a
microcontroller unit, and a battery make up the air
quality monitoring node.
Kumar and Jasuja[13]
suggested a real-time
independent air quality monitoring system based
on IoT that contains several sensors such as the
DSM501A PM sensor, the DHT22 and BMP180,
which provide digital outputs for measuring
Table 1: Traditional and IoT based of monitoring air
pollution differences[8]
Parameter Conventional IoT APM
Coverage Low High
Cost High Cheap
Power consumption High Low
APM: Air pollution monitoring, IoT: Internet of things
Figure 2: The proposed SEAPMS structure
Figure 1: Internet of things architecture[5,6]
AJCSE/Jan-Mar-2022/Vol 7/Issue 1 13
Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT
temperature, humidity, and pressure, MQ9 and
MQ135 are analog sensors that detect carbon
monoxide and carbon dioxide. The sensors are
linked to anArduino board, and the Raspberry Pi (a
main node) was linked to theArduino Uno through
a USB cable. The system’s software was built of an
IDE (Integrated Development Environment). The
Message Queuing Telemetry Transport (MQTT)
protocol is critical in developing connection
between devices and users.
Barot et al.[14]
described an IoT-based air quality
monitoring system that detects indoor and outdoor
air pollutants, including PM10, PM2.5, carbon
monoxide, temperature, and humidity, ESP8266
microcontroller was equipped with Wi-Fi to
smooth MQTT protocol, the system also included
a DHT22 sensor, an electrochemical sensor ZE07-
CO for carbon monoxide, and an SDS021 sensor
unit for PM10 and PM2 5 readings.
The literature analysis shows that most systems
differ in microcontroller type and sensors type
that is used for the simulation of a practical circuit.
Most of the studies used Arduino or Raspberry
Pi or ESP8266 as a microcontroller and used
WSN technology. The aim of the research is to
design and develop a SEAPMS as well as a fire
extinguishing system based on IoT using a particle
photon microcontroller and then sending the
evaluated data over the internet to the UBIDOTS
cloud to store, visualize, and analyze data. The
system’s most essential advantages are its low
cost with long life time, small size unit, low-power
consumption, efficiency, eco-friendliness, and
the ability to achieve real-time results at several
places.
ANALYSIS OF THE SEAPMS DESIGN
Figure 3 shows the SEAPMS elements, correct
interconnections, and the actual position of each
item. Particle photons, MQ-2 sensor, MQ-4 sensor,
MQ-135 sensor, MQ-7 sensor, DHT 11 sensor,
and DSM501A sensor are among the equipment
and components used in this project.
Particle photon
The particle photon is a single microcontroller
development board with the added feature of
having a built-in Wi-Fi module that we can control
and program over the internet using the Particle
cloud.[15]
It is a combination of the ARM Cortex
M3 microprocessor and the Broadcom Wi-Fi chip
in a tiny compact module that employs the C/C++
programming language. As illustrated in Figure 4,
it contains 18 general purpose input-output pins,
which are utilized for connecting particle photons
to other general-purpose devices by coding them
according to the desired function, while the sensors
acquire actual data and send it to the photon.[16]
MQ4 gas sensor
MQ4 sensor is shown in Figure 5 which has high
levels of methane sensitivity in a wide range,
suitable for low cost, and long-term use, and it has
simple driver circuitry.[17]
MQ2 gas sensor
MQ2 gas sensor shown in Figure 6 can be used
as a digital or analog sensor, for smoke detection,
it uses the analog pin of the sensor for a scope of
200–5000 ppm.[18]
MQ7 gas sensor
This sensor is ideal for measuring carbon
monoxide (CO) gas, as illustrated in Figure 7. CO
Figure 3: Circuit pin diagram of the implemented
hardware of the SEAPMS
Figure 4: Photon pin diagram[16]
AJCSE/Jan-Mar-2022/Vol 7/Issue 1 14
Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT
concentrations ranging from 10 to 10,000 ppm
can be estimated. This sensor’s performance is
measured in terms of analog resistance. It includes
six pins, four for signal extraction and two for
internal line heating. Its benefits are long life, low
cost, and simple drive circuit.[19]
MQ135 gas sensor
MQ135 shown in Figure 8 is used to measure
carbon dioxide CO2
emissions in the air. Because
of its wide detection range, it has rapid reaction,
high sensitivity, long life, and stability.[20]
DSM501A dust sensor
In Figure 9, it can detect particles with a diameter
1 micron. The built-in sensor warmer will
automatically inhale air. It is compact in size, light
in weight, and simple to install and use.[21]
DHT11 temperature and humidity sensor
The DHT11 sensor measures and serializes
humidity, and temperature values over a single
wire. It has four pins, one of which is used for
serial communication of data.[22]
The sensor reads
analog signals from the physical environment
and converts these signals into digital signals.[23]
DHT11temperatureandhumiditysensorareshown
in Figure 10.
UBIDOTS is a platform for IoT
UBIDOTS is the IoT platform employed in this
research. It is an IoT application builder with data
analytics and visualization. Each UBIDOTS user
has an API credential, which includes a unique
authentication for each user to be included in the
program. The system is then networked, and the
data measurements collected by the hardware
are transferred to this IOT platform.[18]
The
UBIDOTS log-in process is depicted in Figure 11.
The particle photon takes data from the sensor and
transmits it through a communication protocol
known as MQTT to the UBIDOTS cloud, once
the platform has been modified, it receives
hardware information and displays a variable
within the platform, representation of the system
in UBIDOTS is shown in Figure 12.
This is accomplished through the use of variable
names in the code; once the data are represented as
a variable, it is shown as a widget in the dashboards.
Data can be viewed to users in the form of a table,
indication, or graph. Events can also be used to
send alert messages or e-mails to users.
MQTT Message Queue Transport Remote Service,
which is an ISO-based open-source messaging
protocol file that works on theTCP/IPnetwork layer,
MQTT is a powerful tool that employs the publish-
subscribe(pub/sub)structure,asshowninFigure 13.
It was created in 1999 by Andy Stanford-Clark and
Arlen Nipper and has since been popular for IoT due
Figure 5: MQ4 sensor
Figure 10: DHT11 sensor
Figure 6: MQ2 sensor
Figure 7: MQ7 sensor
Figure 8: MQ135 sensor
Figure 9: DSM501A
AJCSE/Jan-Mar-2022/Vol 7/Issue 1 15
Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT
to low-cost processors and quick internet access.[24]
For IoT devices, the MQTT protocol works on two
types of controls, the first of which publishes data
from MQTT clients to MQTT brokers on a specific
subject. The second is a subscription to which the
MQTT client can subscribe to the topic,[25]
it enables
real-time data transmission and reception while
leaving a tiny footprint on the network system and
the device itself.
IMPLEMENTATION OF THE SEAPMS
Connecting the electrical circuit is shown in
Figure 14, the Particle IDE platform was used to
generate the main system code and download the
necessary libraries. The IDE platform will upload
the code to the board. The IDE environment uses
C/C++ languages. The data were collected using
the various sensors mentioned above. Calibrated
sensors have produced an analog output voltage
proportional to the pollutant concentration of gas.
The concentrations collected will be compared to
the TLV of each sensed gas, thus, if the sensed
concentration is above the TLV, the event created
by UBIDOTS sends alarm messages to the
smartphone, g-mail, and telegram application so
that a warning message is sent to the competent
authorities concerned to take the effective steps to
prevent the worsening of the air pollution problem
because it affects the lives of all living organisms,
the first of which is human beings. The Wi-Fi
module then transmits the measured data value to
the server through the internet and is configured
to transmit the measured data to the UBIDOTS
platform. UBIDOTS provides access to data
measurement through any computer with internet
access capabilities.
Figure 11: Circuit pin diagram of the implemented hardware of fire extinguishing system
Figure 13: MQTT protocol working principle[25]
Figure 12: UBIDOTS log in[24] Figure 14: The electrical circuit of the SEAPMS
AJCSE/Jan-Mar-2022/Vol 7/Issue 1 16
Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT
All data are in the photon, and it compares each
gas concentration to its specific threshold limit
value (TLV), as shown in Table 2 that clarifies
the TLV specified for this research is relative to
the TLV for the Occupational Safety and Health
Administration.
ANALYSIS OF THE FIRE
EXTINGUISHING SYSTEM DESIGN
Governments are currently interested in smart
fire-fighting systems, which will be a future
development trend for intelligent fire defense.
By recognizing concealed risks in real time,
this technique can take emergent measures to
successfully protect users’ lives and property.
The system depends on the previously designed
SEAPMS, where after measuring the percentage
of smoke inside the room or building if the
smoke exceeds the TLV set for it, the relay will
automatically sound and lights an alarm and
operates the sprinkler that sprays water in the
designated area to put out the smoke or fire.
Figure 11 depicts the pieces of the fire
extinguishing system, as well as the appropriate
connections and the actual position of each item.
MQ2 sensor, 4-Channel relay, bulb and sound for
alert, and a water pump are among the equipment
and components utilized in this project.
MQ2 smoke sensor
This sensor is explained previously in paragraph
(3.3) of the first designed APM system.
Four-channel relay
The four-channel relay module is a low-level
relay interface board that contains four 5 V relays
as well as the associated switching and isolating
components, allowing for simple interfacing with
a microcontroller or sensor while using a few
components and connections. Figure 15 depicts a
5 V four-channel relay interface with a 15–20 mA
driver current required for each channel. It appears
to be simple to install and repair, and it has high-
current relays that function at AC250V 10A or
DC30V 10A.[27]
Water pump
The water pump is shown in Figure 16 powers the
sprinkler, which sprays water in the designated
area to extinguish the smoke or fire.[28]
Light bulb and Alarm
Light bulb and alarm shown in Figure 17 are used
in the event of a high level of smoke, where the
automatic extinguishing system activates the light
Figure 15: Four-channel relay layout[27]
Table 2: Thresholds table[26,27]
Parameter Set TLV OSHA TLV
CO 25 PPM 50 PPM
CO2
3500 PPM 5000 PPM
CH4
[TLV] 1500 PPM 2000 PPM
Smoke 50 100
Dust 10,000 15,000
Temperature 55°C 75°C
Humidity 60% 75
OSHA: Occupational Safety and Health Administration, TLV: Threshold limit
value Figure 17: Light bulb and alarm[29]
Figure 16: Water pump pinout[28]
AJCSE/Jan-Mar-2022/Vol 7/Issue 1 17
Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT
and alarm sound as a warning signal, followed by
the spray system, where the relay sprays water in
the designated area to avoid the risk of burning.[29]
IMPLEMENTATION OF THE FIRE
EXTINGUISHING SYSTEM
Connecting the electrical circuit is shown in
Figure 18
SYSTEM’S FLOWCHART
The concentrations collected will be compared to
standard thresholds of each sensed gas, thus, if
the sensed concentration is above the threshold,
the event created by UBIDOTS sends alarm
messages to the smartphone, g-mail, and telegram
application so that a warning message is sent
to the competent authorities concerned to take
the effective steps to prevent the worsening of
the air pollution problem. Because it affects the
lives of all living organisms, the first of which
is human beings. Moreover, if the concentration
is less than the threshold, this means that there
is no environmental problem to worry about and
we will continue collecting data from sensors.
The Wi-Fi module then transmits the measured
data value to the server through the internet and
is configured to transmit the measured data to the
UBIDOTS platform. UBIDOTS provides access
to data measurement through any computer with
internet access capabilities. The data collected
from the sensor have been converted into a string
and the information sent to the remote server has
been modified. The system’s flowchart is shown
in Figure 19.
EXPERIMENTS AND RESULTS
The monitoring results of different sensors on
the UBIDOTS platform are shown in the graphs
below. The shown concentrations of pollutants are
calculated in the study sites which included many
different areas and the results were as follows:
The environment of the generators
Thesystemsweretestedinageneratorenvironment
for 5 days in a crowded area with a large number
of houses (400–450) are located as shown in
Figure 20; the results were as follows in Figure 21
and dashboards as shown in Figure 22:
The concentrations of some air pollutants
for the study area were measured weekly in
conjunction with work generated and for the
period January 22, 2021, until January 28,
2021, by taking daily readings over a 24 h, the
generator selected for the study is working at
a rate ranging between 12 and 20 h a day and
estimation of pollutant concentration in units of
parts per million (ppm). The emissions of the
generators were measured against the direction
of the wind to find out the farthest distance,
they were concentrated pollutants. Note that the
ranged temperatures pollutants were measured
are between 2°C and 22°C, the humidity is
between 14% and 84%.
Air pollution in a natural environment
(a garden)
The system was used to measure outdoor pollution
for 5 days away from the generator mentioned
above250 m,asshowninFigure 23,andtheresults
and dashboards were as follows in Figures 24 and
25, respectively:
The results show that the concentration of all
gasses decreased significantly when moving away
from the emission source of the generator.
Landfill (sanitary landfill)
In the sanitary landfill shown in Figure 26,
there is an anaerobic tolerance of the organic
materials that make up the waste materials that
lead to the emission of biogas. It is made up of
40–60% methane gas and the proportion of the
remaining gasses is carbon dioxide, the other is
Figure 18: The electrical circuit of the APM with the fire
extinguishing system
AJCSE/Jan-Mar-2022/Vol 7/Issue 1 18
Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT
carbon dioxide; the results and dashboards were
as follows in Figures 27 and 28, respectively:
Gas plant
In a gas plant shown in Figure 29, we got the
following results and dashboards shown in
Figures 30 and 31, respectively:
The smallest concentration was carbon monoxide
gas CO because it was not detected in all locations,
this is a good thing, cause and it is a heavy and very
dangerous and toxic gas, and inhaling quantities
of it that may lead to inevitable death.[30]
The UBIDOTS dashboard gives us historical
statements that can be showed anytime, anywhere.
These reports indicate the human readable dates,
like: January 26, 2021, 07:40:13 and the readable
value of each measured gas from sensors. For
Figure 21: CO2
concentrations at generator
Figure 19: Flowchart of the system
Figure 20: Designed systems at generator
AJCSE/Jan-Mar-2022/Vol 7/Issue 1 19
Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT
Figure 25: Garden’s dashboards
Figure 28: Outdoor dashboards
Figure 29: Systems at a gas plant
Figure 22: Generator’s dashboards
Figure 23: Garden designed systems
Figure 24: CO2
concentrations in a garden
Figure 26: Landfill (sanitary landfill) designed systems
Figure 27: Outdoor CO2
concentrations
AJCSE/Jan-Mar-2022/Vol 7/Issue 1 20
Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT
user feedback, the following messages shown
in Figure 32 will be received from programmed
UBIDOTS on smartphones to ensure that the
concentrations of gasses do not exceed the specific
threshold for each of them.
CONCLUSION
In this paper, a SEAPMS and a fire extinguishing
system were implemented in different locations
for the detection of harmful concentrations of
different gases, based on IoT technology.
The SEAPMS is important for sending warning
messages to the relevant responsible authorities to
avoid the risk of harming all kinds of life-giving
creatures, and the fire extinguishing system will
send a sound and a light alarm and sprays water
if smoke gas exceeds its specific threshold, the
monitored gas included carbon dioxide CO2 which
is monitored using MQ135, methane CH4 which
is monitored using MQ4, CO which is monitored
using MQ7, dust is monitored using DSMA510
dust sensor, and smoke which is monitored by
MQ2.
Data were continuously transmitted and displayed
on the UBIDOTS platform through particle photon
in real time we can obtain data on a daily, weekly,
and monthly basis. The systems are already used
in homes, car parks, gardens, factories, landfills,
and gas plants, and can be used anywhere and
anytime needed for real-time readings.
ACKNOWLEDGMENT
All thanks and appreciation to the University of
Mosul, Department of Computer Engineering, and
to Prof. Dr. Rabee Muwafaq, the supervisor of the
work, and thanks also to the Nineveh Municipal
Department, the Sanitary Landfill Unit, and the
Nineveh Gas Plant for facilitating them to make
measurements for research.
REFERENCES
1. Al of University of Babylon. Vol. 18, no‫والماء‬ ‫الهواء‬ ‫تلوث‬
‫ابر‬,”‫أثاره‬ ،‫مصادره‬ ،‫أنواعه‬ No.1-2; 2011.
2. Ajith S, Harivishnu B, Vinesh TK, Sooraj S, Prasad G.
Automated Gas Pollution Detection System. In:
2nd
International Conference for Convergence in
Technology (I2CT). Piscataway, New Jersey: Institute
of Electrical and Electronics Engineers; 2017. p. 483-6.
3. Air Pollution and Health. Available from: https://www.
huffingtonpost.in/entry/what-airpollutiondoes-to-
your- ody_us5a1a7f47e4b064948074da5f
4. Porkodi R, Bhuvaneswari V. The Internet of Things
(IOT) Applications and Communication Enabling
Technology Standards: An Overview. In: International
Conference in Intelligent Computing Applications.
Piscataway, New Jersey: Institute of Electrical and
Electronics Engineers; 2014. p. 324-9.
5. Madakam S, Lake V, Lake V, Lake V. Internet of
things (IoT): A literature review. J Comput Commun
2015;3:164.
6. Tewari A, Gupta B. Security, privacy and trust of
different layers in internet-of things (IoTs) framework.
Future Gener Comput Syst 2020;108:909-20.
Figure 30: CO2
concentrations at a gas plant
Figure 32: UBIDOTS messages on smartphone
Figure 31: Dashboards for a gas plant
AJCSE/Jan-Mar-2022/Vol 7/Issue 1 21
Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT
7. Cirani S, Davoli L, Ferrari G, Ferrari R, Medagliani P,
Picone M, et al. A scalable and self-configuring
architecture for service discovery in the internet of
things. IEEE Internet Things J 2014;1:508-21.
8. Yadav S, Kanikapatil M, Yungpisangle, Lam PK.
IoT Based air quality monitoring system. Int Res J
Modernization Eng Technol Sci 2020;2:890-1.
9. Turci LD. Real-time operating system freertos
application for fire alarm project in reduced scale. Int J
Comput Digital Syst 2017;6:197-204.
10. Manna S, Bhunia SS, Mukherjee N. Vehicular Pollution
Monitoring Using IoT. International Conference on
Recent Advances and Innovations in Engineering
(ICRAIE-2014) Piscataway, New Jersey: Institute of
Electrical and Electronics Engineers; 2014. p. 1-5.
11. Dong W, Wang L, Yu G, Mei Z. Design of wireless
automatic fire alarm system. Proc Eng 2016;135:413-7.
12. Zheng K, Zhao S, Yang Z, Xiong X, Xiang W. Design
and implementation of LPWA-based air quality
monitoring system. IEEE Access 2016;4:3238-45.
13. Kumar S, Jasuja A. Air quality monitoring system
based on IoT using Raspberry Pi. 2017 International
Conference on Computing, Communication and
Automation (ICCCA). Piscataway, New Jersey:
Institute of Electrical and Electronics Engineers; 2017.
p. 1341-6.
14. Barot V, Kapadia V, Pandya S. QoS Enabled IoT
based low cost air quality monitoring system with
power consumption optimization. Cybern Inf Technol
2020;20:122-40.
15. Rush C. Programming the Photon: Getting Started
with the Internet of Things. New York: McGraw Hill
Education; 2016.
16. Particle Docs. Photon Functional Description.
Available from:https://docs.particle.io/datasheets/wifi/
photondatasheet.june,2021
17. Singhvi RK, Lohar RL, Kumar A, Sharma R,
Sharma LD, Saraswat RK. IoT Basedsmart Waste
Management System: India Prospective. In:
4th
International Conference on Internet of Things:
Smart Innovation and Usages (IoTSIU): IEEE; 2019.
p. 1-6.
18. Kodali RK, Rajanarayanan SC. IOT Based Automatic
LPG Gas Booking and Leakage Detection System. In:
11th
International Conference on Advanced Computing
(ICoAC): IEEE; 2019. p. 338-41.
19. Adhim FI, Priananda CW, Rahayu LP, Pramudijanto J,
Tsauri DA, Susila J, et al. Carbon Monoxide and
Methane Gas Identification System. In: International
Conference in Advanced Mechatronics Intelligent
Industrial Automation. ICAMIMIA: IEEE; 2019.
p. 263-7.
20. Biswal A, Subhashini J, Pasayat AK. Air Quality
Monitoring System for Indoor Environments Using
IoT. In: AIP Conference Proceedings. Vol. 2112.
Melville, NY: AIP Publishing LLC; 2019. p. 020180.
21. Ahmad A, Paul A, Rathore MM. An efficient divide-
and-conquer approach for big data analytics in
machine-to-machine communication. Neurocomputing
2016;174:439-53.
22. Available from: https://www.electronicwings.com/
particle/dht11-sensor-interfacing-with-particle-photon.
[Last accessed on 2021 Sep 25].
23. Ghimire N. Weather Station using Particle Photon;
2019.
24. Yu T, Zhang TQ. Design and Implementation of a
PM2. 5 Dust Detection System Based on ZigBee. In:
International Conference on Electronic Engineering
and Informatics (EEI): IEEE; 2019. p. 260-4.
25. Available from: https://www.osha.gov/laws-regs/
regulations/standardnumber/1926/1926.55
26. Available from: https://www.cdc.gov/niosh/topics/
flavorings/limits.html. [Last accessed on 2021 Oct 04].
27. Available from: https://www.handsontec.com/
dataspecs/4Ch-relay.pdf. [Last accessed on 2022 Jan 15].
28. Available from: https://arduinogetstarted.com/tutorials/
arduino-controls-pump. [Last accessed on 2022 Feb 15].
29. Availablefrom:https://www.rawlix.com/product/arduino-
4-channel-relay-module-board-637239363791411187.
[Last accessed on 2022 Mar 01].
30. Mishra A. Design and deployment of MQTT based
HeTNeT using IEEE 802.15. 4 and IEEE 802.11 for
internet of things. Int J Res Appl Sci Eng Technol.
2017;5:1616-25.

More Related Content

PDF
Design and Implementation of Smart Air Pollution Monitoring System Based on I...
PDF
IRJET- Air Quality and Dust Level Monitoring using IoT
PDF
IRJET - Study on Smart Air Pollution Monitoring System based on IoT
PDF
IRJET-E-Waste Management using Robotics
PDF
IRJET - IoT based Smart City and Air Quality Monitor
PDF
OPC Protocol Application for Real-Time Carbon Monitoring System for Industria...
PDF
An Efficient Tracking System for Air and Sound.pdf
PDF
Air Quality Monitoring and Control System in IoT
Design and Implementation of Smart Air Pollution Monitoring System Based on I...
IRJET- Air Quality and Dust Level Monitoring using IoT
IRJET - Study on Smart Air Pollution Monitoring System based on IoT
IRJET-E-Waste Management using Robotics
IRJET - IoT based Smart City and Air Quality Monitor
OPC Protocol Application for Real-Time Carbon Monitoring System for Industria...
An Efficient Tracking System for Air and Sound.pdf
Air Quality Monitoring and Control System in IoT

Similar to Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT (20)

PDF
Implementation of environmental monitoring based on KAA IoT platform
PDF
2111.14125v1sdfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsf.pdf
PDF
Monitoring and Forecasting of Air Emissions with IoT Measuring Stations and a...
PDF
40120140505008
PDF
IRJET- An IoT based Low Cost Air Pollution Monitoring System
PDF
IRJET- Air Quality Monitoring System for City
DOC
Final Synopsis -Bharathi(21-4-23).doc
PDF
IRJET- Web-Based Air and Noise Pollution Monitoring and Alerting Syetem
PDF
54 june2020
PDF
Air Pollution Monitoring System
PDF
IRJET- Air and Sound Pollution Monitoring System using IoT
PDF
Design and Implementation of Portable Outdoor Air Quality Measurement System ...
PDF
LORA BASED DATA ACQUISITION SYSTEM
PDF
11. 23762.pdf
PDF
Vijay prakash assignment internet of things
PDF
internet of things (IOT)
PDF
Btechseminar 190826153808
PDF
Latex Beamer Presentation, Smart Wearable Sensor
PDF
IRJET- Air Quality Monitoring System using Vehicles Based on the IoT
PDF
IRJET- Air Quality Monitoring System using Vehicles Based on the IoT
Implementation of environmental monitoring based on KAA IoT platform
2111.14125v1sdfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsf.pdf
Monitoring and Forecasting of Air Emissions with IoT Measuring Stations and a...
40120140505008
IRJET- An IoT based Low Cost Air Pollution Monitoring System
IRJET- Air Quality Monitoring System for City
Final Synopsis -Bharathi(21-4-23).doc
IRJET- Web-Based Air and Noise Pollution Monitoring and Alerting Syetem
54 june2020
Air Pollution Monitoring System
IRJET- Air and Sound Pollution Monitoring System using IoT
Design and Implementation of Portable Outdoor Air Quality Measurement System ...
LORA BASED DATA ACQUISITION SYSTEM
11. 23762.pdf
Vijay prakash assignment internet of things
internet of things (IOT)
Btechseminar 190826153808
Latex Beamer Presentation, Smart Wearable Sensor
IRJET- Air Quality Monitoring System using Vehicles Based on the IoT
IRJET- Air Quality Monitoring System using Vehicles Based on the IoT
Ad

More from BRNSSPublicationHubI (20)

PDF
Investigation the Effect of Wet Granulation and Hydrophilic Binder in Dissolu...
PDF
Antimicrobial Activity of Green Tea: Honey Blend against Acne-Causing Microo...
PDF
Allergic Angina with QTc Prolongation and Wellens Type-A Syndrome Post-ceftr...
PDF
Polymer Synergy in Action: Antimicrobial Properties of Chitosan-Alginate Com...
PDF
Screening of polymerization effect with Alginate-HPMC-Guar gum on Polymer-Ba...
PDF
Formulation and Evaluation of Herbal Soap for Fairness and Glowing Skin
PDF
An Analytical Study to Ascertain the Safety of Dashmooli Kwath (Syrup)
PDF
An Analytical Study of Kushmanda avaleha to Evaluate its Safest Ayurvedic Pre...
PDF
Evaluation of the Antibacterial Activity of Methanolic Extracts of Hemigraphi...
PDF
Management of Polycystic Ovary Syndrome by Chinese Herbal Medicine Cinnamon a...
PDF
The Role of Air Pollution on Climate Change: Myths and Realities
PDF
Suggesting a Prescriptive Model for Online Agricultural Education
PDF
Multidimensional Poverty Status Correlates of Rural Households in Kaduna Stat...
PDF
Typology of Processed Tea (Camellia sinensis [L.] O. Kuntze): A Review
PDF
Sustainable Entrepreneurship of Farm Women through Duck Farming in Purba Bard...
PDF
A Comparative Study of Management Approaches for Khari Goats in Traditional V...
PDF
From Field to Kitchen: Pre-extension Demonstration of Sweet Potato Variety (H...
PDF
Characterization of Systematic Variations in Met Parameters: Impact of El Nin...
PDF
Mutual interactions and Inter-relationships between “Weather” and “Weather Sy...
PDF
The Relationship between the Food Nutritional Value and the Absence of Microb...
Investigation the Effect of Wet Granulation and Hydrophilic Binder in Dissolu...
Antimicrobial Activity of Green Tea: Honey Blend against Acne-Causing Microo...
Allergic Angina with QTc Prolongation and Wellens Type-A Syndrome Post-ceftr...
Polymer Synergy in Action: Antimicrobial Properties of Chitosan-Alginate Com...
Screening of polymerization effect with Alginate-HPMC-Guar gum on Polymer-Ba...
Formulation and Evaluation of Herbal Soap for Fairness and Glowing Skin
An Analytical Study to Ascertain the Safety of Dashmooli Kwath (Syrup)
An Analytical Study of Kushmanda avaleha to Evaluate its Safest Ayurvedic Pre...
Evaluation of the Antibacterial Activity of Methanolic Extracts of Hemigraphi...
Management of Polycystic Ovary Syndrome by Chinese Herbal Medicine Cinnamon a...
The Role of Air Pollution on Climate Change: Myths and Realities
Suggesting a Prescriptive Model for Online Agricultural Education
Multidimensional Poverty Status Correlates of Rural Households in Kaduna Stat...
Typology of Processed Tea (Camellia sinensis [L.] O. Kuntze): A Review
Sustainable Entrepreneurship of Farm Women through Duck Farming in Purba Bard...
A Comparative Study of Management Approaches for Khari Goats in Traditional V...
From Field to Kitchen: Pre-extension Demonstration of Sweet Potato Variety (H...
Characterization of Systematic Variations in Met Parameters: Impact of El Nin...
Mutual interactions and Inter-relationships between “Weather” and “Weather Sy...
The Relationship between the Food Nutritional Value and the Absence of Microb...
Ad

Recently uploaded (20)

PPTX
Institutional Correction lecture only . . .
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
01-Introduction-to-Information-Management.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Institutional Correction lecture only . . .
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
A systematic review of self-coping strategies used by university students to ...
Microbial diseases, their pathogenesis and prophylaxis
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Cell Structure & Organelles in detailed.
Anesthesia in Laparoscopic Surgery in India
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
RMMM.pdf make it easy to upload and study
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
01-Introduction-to-Information-Management.pdf
Computing-Curriculum for Schools in Ghana
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
2.FourierTransform-ShortQuestionswithAnswers.pdf
Complications of Minimal Access Surgery at WLH
FourierSeries-QuestionsWithAnswers(Part-A).pdf

Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT

  • 1. © 2022, AJCSE. All Rights Reserved 11 RESEARCH ARTICLE Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT Raghad Hazim Alshekh Department of Computer Engineering, University of Mosul, Mosul, Iraq Received on: 10/12/2021; Revised on: 11/01/2022; Accepted on: 01/02/2022 ABSTRACT A Smart Environmental Air Pollution Monitoring System (SEAPMS) based on internet of things (IoT) has been built for monitoring the concentrations of major air pollutant gases, as well as a fire extinguishing system for fire detection and prevention. Using a network of sensors, the SEAPMS detects gas concentrations such as carbon monoxide CO, carbon dioxide CO2 , methane CH4 , dust, smoke, temperature, and humidity. The sensors will collect data on numerous environmental characteristics and send it to particle photons, which will compare it to a predetermined threshold for each sensor then sends it to a special IoT platform known as UBIDOTS. UBIDOTS sends data to the cloud then they will be realized and virtualized to be displayed. The fire extinguishing system will activate when the smoke concentration exceeds its threshold limit value. Key words: Internet of things, Smart Environmental Air Pollution Monitoring System, Particle photon, Sensors, UBIDOTS, Message Queuing Telemetry Transport INTRODUCTION According to the American Social Medical Association for Industrial Health, air pollution is defined as the presence of impurities or pollutants that have fallen into the air, whether by nature or man, in sufficient quantity and time to disturb the many people exposed to this air, causing harm to public health and property of humans, animals, and plants.[1] Acidification, global warming, ozone layer depletion, and climate change are all environmental repercussions of air pollution, resulting in dryness and vegetation damage.[2] Air pollution promotes respiratory problems such as asthma, pneumonia, and bronchitis in humans. Pregnancy exposure to high levels of air pollution causes miscarriage, early delivery, autism, and asthma in children.[3] As a result, demand for air pollution monitoring (APM) systems is increasing. The conventional air automatic monitoring system is distinguished by very sophisticated equipment technology, huge bulk, instability, and expensive cost. Due to the high cost and weight, large- scale installation is unfeasible. This system is Address for correspondence: Raghad Hazim Alshekh E-mail: raghad.h.alshekh@uomosul.edu.iq only available for installation in key monitoring locations of a few significant enterprises. This paper provides a way for overcoming the drawbacks of standard monitoring systems and detection methods while simultaneously cutting test costs by merging internet of things (IoT) technology with APM. The IoT is a more exemplary new path in the field of IT, a revolution in the conversion of data from things to things, from human to human, and from human to things. It was created in 1998 and Kevin Ashton first introduced the term “IoT” in 1999.[4] IoT architecture consisting of three layers, as shown in Figure 1, application layer, network layer, and perception layer. The application layer uses smart cloud computing technologies to extract valuable information from a large amount of data processing and also provides a link between IoT and users.[5,6] The network layer deals with network operations, while the responsible sensing layer is assembling the information.[7] There are many reasons explained in Table 1 for choosing this APM technology. Over the past few decades, there has been a rapid surge in the development of APM systems. The applications of these systems are regarded as robust, and they are always a challenge for inventors. These systems must be well-designed to Available Online at www.ajcse.info Asian Journal of Computer Science Engineering 2022;7(1):11-21 ISSN 2581 – 3781
  • 2. AJCSE/Jan-Mar-2022/Vol 7/Issue 1 12 Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT meet time restrictions while executing complicated jobs.[9] The Smart Environmental APM System (SEAPMS) in this research contains two parts; the first part is the hardware components and the second part is the software programs. The sensors are programmed using the Particle IDE program and the programming language (C++). The data should be available in real time on the UBIDOTS IoT platform, the structure of the system is shown in Figure 2. The rest of this paper is structured as follows: Section 2 discusses the background and related works, while Section 3 describes the system design analysis. Section 4 describes implementation of the system, Section 5 shows the analysis of the fire extinguishing system design, Section 6 shows the implementation if the fire extinguishing system design, Section 7 shows the system’s flowchart where Section 8 shown the results, and finally, Section 9 shows the conclusion. BACKGROUND AND RELATED WORKS We discovered through a review of previously designed APM systems and fire extinguishing systems that Manna et al.[10] designed an APM system based on IoT to measure pollution on streets and track vehicles that pollute beyond a predetermined limit by combining a wireless sensor network (WSN) based on IEEE 802.15.4 and electrochemical toxic gas sensors, as well as the use of a radio frequency identification (RFID) tagging system. Continuous air quality monitoring and the use of multiple gas sensors, such as carbon monoxide, sulfur dioxide, nitrogen dioxide, methane, and so on. The locations that had a high volume of traffic were identified to be monitored. For each location, the RFID reader communicated with Arduino and sends the RFID tag number that it was read and data were printed on a terminal or sent the data to a server. Dong et al.[11] created a wireless automatic fire alarm system with low-power consumption to provide rapid fire detection and alarm as well as state supervision of fire-fighting capabilities. Zheng et al.[12] designed an APM system based on IoT technology using low-power area network, which is established on the IEEE 802.15.4 k regulation, is used to get ubiquitous communication between the monitoring nodes and the access point. A particulate matter (PM) sensor was utilized to measure PM 2.5, as well as a temperature and humidity sensor. Sensors, a microcontroller unit, and a battery make up the air quality monitoring node. Kumar and Jasuja[13] suggested a real-time independent air quality monitoring system based on IoT that contains several sensors such as the DSM501A PM sensor, the DHT22 and BMP180, which provide digital outputs for measuring Table 1: Traditional and IoT based of monitoring air pollution differences[8] Parameter Conventional IoT APM Coverage Low High Cost High Cheap Power consumption High Low APM: Air pollution monitoring, IoT: Internet of things Figure 2: The proposed SEAPMS structure Figure 1: Internet of things architecture[5,6]
  • 3. AJCSE/Jan-Mar-2022/Vol 7/Issue 1 13 Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT temperature, humidity, and pressure, MQ9 and MQ135 are analog sensors that detect carbon monoxide and carbon dioxide. The sensors are linked to anArduino board, and the Raspberry Pi (a main node) was linked to theArduino Uno through a USB cable. The system’s software was built of an IDE (Integrated Development Environment). The Message Queuing Telemetry Transport (MQTT) protocol is critical in developing connection between devices and users. Barot et al.[14] described an IoT-based air quality monitoring system that detects indoor and outdoor air pollutants, including PM10, PM2.5, carbon monoxide, temperature, and humidity, ESP8266 microcontroller was equipped with Wi-Fi to smooth MQTT protocol, the system also included a DHT22 sensor, an electrochemical sensor ZE07- CO for carbon monoxide, and an SDS021 sensor unit for PM10 and PM2 5 readings. The literature analysis shows that most systems differ in microcontroller type and sensors type that is used for the simulation of a practical circuit. Most of the studies used Arduino or Raspberry Pi or ESP8266 as a microcontroller and used WSN technology. The aim of the research is to design and develop a SEAPMS as well as a fire extinguishing system based on IoT using a particle photon microcontroller and then sending the evaluated data over the internet to the UBIDOTS cloud to store, visualize, and analyze data. The system’s most essential advantages are its low cost with long life time, small size unit, low-power consumption, efficiency, eco-friendliness, and the ability to achieve real-time results at several places. ANALYSIS OF THE SEAPMS DESIGN Figure 3 shows the SEAPMS elements, correct interconnections, and the actual position of each item. Particle photons, MQ-2 sensor, MQ-4 sensor, MQ-135 sensor, MQ-7 sensor, DHT 11 sensor, and DSM501A sensor are among the equipment and components used in this project. Particle photon The particle photon is a single microcontroller development board with the added feature of having a built-in Wi-Fi module that we can control and program over the internet using the Particle cloud.[15] It is a combination of the ARM Cortex M3 microprocessor and the Broadcom Wi-Fi chip in a tiny compact module that employs the C/C++ programming language. As illustrated in Figure 4, it contains 18 general purpose input-output pins, which are utilized for connecting particle photons to other general-purpose devices by coding them according to the desired function, while the sensors acquire actual data and send it to the photon.[16] MQ4 gas sensor MQ4 sensor is shown in Figure 5 which has high levels of methane sensitivity in a wide range, suitable for low cost, and long-term use, and it has simple driver circuitry.[17] MQ2 gas sensor MQ2 gas sensor shown in Figure 6 can be used as a digital or analog sensor, for smoke detection, it uses the analog pin of the sensor for a scope of 200–5000 ppm.[18] MQ7 gas sensor This sensor is ideal for measuring carbon monoxide (CO) gas, as illustrated in Figure 7. CO Figure 3: Circuit pin diagram of the implemented hardware of the SEAPMS Figure 4: Photon pin diagram[16]
  • 4. AJCSE/Jan-Mar-2022/Vol 7/Issue 1 14 Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT concentrations ranging from 10 to 10,000 ppm can be estimated. This sensor’s performance is measured in terms of analog resistance. It includes six pins, four for signal extraction and two for internal line heating. Its benefits are long life, low cost, and simple drive circuit.[19] MQ135 gas sensor MQ135 shown in Figure 8 is used to measure carbon dioxide CO2 emissions in the air. Because of its wide detection range, it has rapid reaction, high sensitivity, long life, and stability.[20] DSM501A dust sensor In Figure 9, it can detect particles with a diameter 1 micron. The built-in sensor warmer will automatically inhale air. It is compact in size, light in weight, and simple to install and use.[21] DHT11 temperature and humidity sensor The DHT11 sensor measures and serializes humidity, and temperature values over a single wire. It has four pins, one of which is used for serial communication of data.[22] The sensor reads analog signals from the physical environment and converts these signals into digital signals.[23] DHT11temperatureandhumiditysensorareshown in Figure 10. UBIDOTS is a platform for IoT UBIDOTS is the IoT platform employed in this research. It is an IoT application builder with data analytics and visualization. Each UBIDOTS user has an API credential, which includes a unique authentication for each user to be included in the program. The system is then networked, and the data measurements collected by the hardware are transferred to this IOT platform.[18] The UBIDOTS log-in process is depicted in Figure 11. The particle photon takes data from the sensor and transmits it through a communication protocol known as MQTT to the UBIDOTS cloud, once the platform has been modified, it receives hardware information and displays a variable within the platform, representation of the system in UBIDOTS is shown in Figure 12. This is accomplished through the use of variable names in the code; once the data are represented as a variable, it is shown as a widget in the dashboards. Data can be viewed to users in the form of a table, indication, or graph. Events can also be used to send alert messages or e-mails to users. MQTT Message Queue Transport Remote Service, which is an ISO-based open-source messaging protocol file that works on theTCP/IPnetwork layer, MQTT is a powerful tool that employs the publish- subscribe(pub/sub)structure,asshowninFigure 13. It was created in 1999 by Andy Stanford-Clark and Arlen Nipper and has since been popular for IoT due Figure 5: MQ4 sensor Figure 10: DHT11 sensor Figure 6: MQ2 sensor Figure 7: MQ7 sensor Figure 8: MQ135 sensor Figure 9: DSM501A
  • 5. AJCSE/Jan-Mar-2022/Vol 7/Issue 1 15 Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT to low-cost processors and quick internet access.[24] For IoT devices, the MQTT protocol works on two types of controls, the first of which publishes data from MQTT clients to MQTT brokers on a specific subject. The second is a subscription to which the MQTT client can subscribe to the topic,[25] it enables real-time data transmission and reception while leaving a tiny footprint on the network system and the device itself. IMPLEMENTATION OF THE SEAPMS Connecting the electrical circuit is shown in Figure 14, the Particle IDE platform was used to generate the main system code and download the necessary libraries. The IDE platform will upload the code to the board. The IDE environment uses C/C++ languages. The data were collected using the various sensors mentioned above. Calibrated sensors have produced an analog output voltage proportional to the pollutant concentration of gas. The concentrations collected will be compared to the TLV of each sensed gas, thus, if the sensed concentration is above the TLV, the event created by UBIDOTS sends alarm messages to the smartphone, g-mail, and telegram application so that a warning message is sent to the competent authorities concerned to take the effective steps to prevent the worsening of the air pollution problem because it affects the lives of all living organisms, the first of which is human beings. The Wi-Fi module then transmits the measured data value to the server through the internet and is configured to transmit the measured data to the UBIDOTS platform. UBIDOTS provides access to data measurement through any computer with internet access capabilities. Figure 11: Circuit pin diagram of the implemented hardware of fire extinguishing system Figure 13: MQTT protocol working principle[25] Figure 12: UBIDOTS log in[24] Figure 14: The electrical circuit of the SEAPMS
  • 6. AJCSE/Jan-Mar-2022/Vol 7/Issue 1 16 Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT All data are in the photon, and it compares each gas concentration to its specific threshold limit value (TLV), as shown in Table 2 that clarifies the TLV specified for this research is relative to the TLV for the Occupational Safety and Health Administration. ANALYSIS OF THE FIRE EXTINGUISHING SYSTEM DESIGN Governments are currently interested in smart fire-fighting systems, which will be a future development trend for intelligent fire defense. By recognizing concealed risks in real time, this technique can take emergent measures to successfully protect users’ lives and property. The system depends on the previously designed SEAPMS, where after measuring the percentage of smoke inside the room or building if the smoke exceeds the TLV set for it, the relay will automatically sound and lights an alarm and operates the sprinkler that sprays water in the designated area to put out the smoke or fire. Figure 11 depicts the pieces of the fire extinguishing system, as well as the appropriate connections and the actual position of each item. MQ2 sensor, 4-Channel relay, bulb and sound for alert, and a water pump are among the equipment and components utilized in this project. MQ2 smoke sensor This sensor is explained previously in paragraph (3.3) of the first designed APM system. Four-channel relay The four-channel relay module is a low-level relay interface board that contains four 5 V relays as well as the associated switching and isolating components, allowing for simple interfacing with a microcontroller or sensor while using a few components and connections. Figure 15 depicts a 5 V four-channel relay interface with a 15–20 mA driver current required for each channel. It appears to be simple to install and repair, and it has high- current relays that function at AC250V 10A or DC30V 10A.[27] Water pump The water pump is shown in Figure 16 powers the sprinkler, which sprays water in the designated area to extinguish the smoke or fire.[28] Light bulb and Alarm Light bulb and alarm shown in Figure 17 are used in the event of a high level of smoke, where the automatic extinguishing system activates the light Figure 15: Four-channel relay layout[27] Table 2: Thresholds table[26,27] Parameter Set TLV OSHA TLV CO 25 PPM 50 PPM CO2 3500 PPM 5000 PPM CH4 [TLV] 1500 PPM 2000 PPM Smoke 50 100 Dust 10,000 15,000 Temperature 55°C 75°C Humidity 60% 75 OSHA: Occupational Safety and Health Administration, TLV: Threshold limit value Figure 17: Light bulb and alarm[29] Figure 16: Water pump pinout[28]
  • 7. AJCSE/Jan-Mar-2022/Vol 7/Issue 1 17 Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT and alarm sound as a warning signal, followed by the spray system, where the relay sprays water in the designated area to avoid the risk of burning.[29] IMPLEMENTATION OF THE FIRE EXTINGUISHING SYSTEM Connecting the electrical circuit is shown in Figure 18 SYSTEM’S FLOWCHART The concentrations collected will be compared to standard thresholds of each sensed gas, thus, if the sensed concentration is above the threshold, the event created by UBIDOTS sends alarm messages to the smartphone, g-mail, and telegram application so that a warning message is sent to the competent authorities concerned to take the effective steps to prevent the worsening of the air pollution problem. Because it affects the lives of all living organisms, the first of which is human beings. Moreover, if the concentration is less than the threshold, this means that there is no environmental problem to worry about and we will continue collecting data from sensors. The Wi-Fi module then transmits the measured data value to the server through the internet and is configured to transmit the measured data to the UBIDOTS platform. UBIDOTS provides access to data measurement through any computer with internet access capabilities. The data collected from the sensor have been converted into a string and the information sent to the remote server has been modified. The system’s flowchart is shown in Figure 19. EXPERIMENTS AND RESULTS The monitoring results of different sensors on the UBIDOTS platform are shown in the graphs below. The shown concentrations of pollutants are calculated in the study sites which included many different areas and the results were as follows: The environment of the generators Thesystemsweretestedinageneratorenvironment for 5 days in a crowded area with a large number of houses (400–450) are located as shown in Figure 20; the results were as follows in Figure 21 and dashboards as shown in Figure 22: The concentrations of some air pollutants for the study area were measured weekly in conjunction with work generated and for the period January 22, 2021, until January 28, 2021, by taking daily readings over a 24 h, the generator selected for the study is working at a rate ranging between 12 and 20 h a day and estimation of pollutant concentration in units of parts per million (ppm). The emissions of the generators were measured against the direction of the wind to find out the farthest distance, they were concentrated pollutants. Note that the ranged temperatures pollutants were measured are between 2°C and 22°C, the humidity is between 14% and 84%. Air pollution in a natural environment (a garden) The system was used to measure outdoor pollution for 5 days away from the generator mentioned above250 m,asshowninFigure 23,andtheresults and dashboards were as follows in Figures 24 and 25, respectively: The results show that the concentration of all gasses decreased significantly when moving away from the emission source of the generator. Landfill (sanitary landfill) In the sanitary landfill shown in Figure 26, there is an anaerobic tolerance of the organic materials that make up the waste materials that lead to the emission of biogas. It is made up of 40–60% methane gas and the proportion of the remaining gasses is carbon dioxide, the other is Figure 18: The electrical circuit of the APM with the fire extinguishing system
  • 8. AJCSE/Jan-Mar-2022/Vol 7/Issue 1 18 Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT carbon dioxide; the results and dashboards were as follows in Figures 27 and 28, respectively: Gas plant In a gas plant shown in Figure 29, we got the following results and dashboards shown in Figures 30 and 31, respectively: The smallest concentration was carbon monoxide gas CO because it was not detected in all locations, this is a good thing, cause and it is a heavy and very dangerous and toxic gas, and inhaling quantities of it that may lead to inevitable death.[30] The UBIDOTS dashboard gives us historical statements that can be showed anytime, anywhere. These reports indicate the human readable dates, like: January 26, 2021, 07:40:13 and the readable value of each measured gas from sensors. For Figure 21: CO2 concentrations at generator Figure 19: Flowchart of the system Figure 20: Designed systems at generator
  • 9. AJCSE/Jan-Mar-2022/Vol 7/Issue 1 19 Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT Figure 25: Garden’s dashboards Figure 28: Outdoor dashboards Figure 29: Systems at a gas plant Figure 22: Generator’s dashboards Figure 23: Garden designed systems Figure 24: CO2 concentrations in a garden Figure 26: Landfill (sanitary landfill) designed systems Figure 27: Outdoor CO2 concentrations
  • 10. AJCSE/Jan-Mar-2022/Vol 7/Issue 1 20 Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT user feedback, the following messages shown in Figure 32 will be received from programmed UBIDOTS on smartphones to ensure that the concentrations of gasses do not exceed the specific threshold for each of them. CONCLUSION In this paper, a SEAPMS and a fire extinguishing system were implemented in different locations for the detection of harmful concentrations of different gases, based on IoT technology. The SEAPMS is important for sending warning messages to the relevant responsible authorities to avoid the risk of harming all kinds of life-giving creatures, and the fire extinguishing system will send a sound and a light alarm and sprays water if smoke gas exceeds its specific threshold, the monitored gas included carbon dioxide CO2 which is monitored using MQ135, methane CH4 which is monitored using MQ4, CO which is monitored using MQ7, dust is monitored using DSMA510 dust sensor, and smoke which is monitored by MQ2. Data were continuously transmitted and displayed on the UBIDOTS platform through particle photon in real time we can obtain data on a daily, weekly, and monthly basis. The systems are already used in homes, car parks, gardens, factories, landfills, and gas plants, and can be used anywhere and anytime needed for real-time readings. ACKNOWLEDGMENT All thanks and appreciation to the University of Mosul, Department of Computer Engineering, and to Prof. Dr. Rabee Muwafaq, the supervisor of the work, and thanks also to the Nineveh Municipal Department, the Sanitary Landfill Unit, and the Nineveh Gas Plant for facilitating them to make measurements for research. REFERENCES 1. Al of University of Babylon. Vol. 18, no‫والماء‬ ‫الهواء‬ ‫تلوث‬ ‫ابر‬,”‫أثاره‬ ،‫مصادره‬ ،‫أنواعه‬ No.1-2; 2011. 2. Ajith S, Harivishnu B, Vinesh TK, Sooraj S, Prasad G. Automated Gas Pollution Detection System. In: 2nd International Conference for Convergence in Technology (I2CT). Piscataway, New Jersey: Institute of Electrical and Electronics Engineers; 2017. p. 483-6. 3. Air Pollution and Health. Available from: https://www. huffingtonpost.in/entry/what-airpollutiondoes-to- your- ody_us5a1a7f47e4b064948074da5f 4. Porkodi R, Bhuvaneswari V. The Internet of Things (IOT) Applications and Communication Enabling Technology Standards: An Overview. In: International Conference in Intelligent Computing Applications. Piscataway, New Jersey: Institute of Electrical and Electronics Engineers; 2014. p. 324-9. 5. Madakam S, Lake V, Lake V, Lake V. Internet of things (IoT): A literature review. J Comput Commun 2015;3:164. 6. Tewari A, Gupta B. Security, privacy and trust of different layers in internet-of things (IoTs) framework. Future Gener Comput Syst 2020;108:909-20. Figure 30: CO2 concentrations at a gas plant Figure 32: UBIDOTS messages on smartphone Figure 31: Dashboards for a gas plant
  • 11. AJCSE/Jan-Mar-2022/Vol 7/Issue 1 21 Alshekh: Design and Implementation of Smart Environmental Air Pollution Monitoring System (SEAPMS) based on IoT 7. Cirani S, Davoli L, Ferrari G, Ferrari R, Medagliani P, Picone M, et al. A scalable and self-configuring architecture for service discovery in the internet of things. IEEE Internet Things J 2014;1:508-21. 8. Yadav S, Kanikapatil M, Yungpisangle, Lam PK. IoT Based air quality monitoring system. Int Res J Modernization Eng Technol Sci 2020;2:890-1. 9. Turci LD. Real-time operating system freertos application for fire alarm project in reduced scale. Int J Comput Digital Syst 2017;6:197-204. 10. Manna S, Bhunia SS, Mukherjee N. Vehicular Pollution Monitoring Using IoT. International Conference on Recent Advances and Innovations in Engineering (ICRAIE-2014) Piscataway, New Jersey: Institute of Electrical and Electronics Engineers; 2014. p. 1-5. 11. Dong W, Wang L, Yu G, Mei Z. Design of wireless automatic fire alarm system. Proc Eng 2016;135:413-7. 12. Zheng K, Zhao S, Yang Z, Xiong X, Xiang W. Design and implementation of LPWA-based air quality monitoring system. IEEE Access 2016;4:3238-45. 13. Kumar S, Jasuja A. Air quality monitoring system based on IoT using Raspberry Pi. 2017 International Conference on Computing, Communication and Automation (ICCCA). Piscataway, New Jersey: Institute of Electrical and Electronics Engineers; 2017. p. 1341-6. 14. Barot V, Kapadia V, Pandya S. QoS Enabled IoT based low cost air quality monitoring system with power consumption optimization. Cybern Inf Technol 2020;20:122-40. 15. Rush C. Programming the Photon: Getting Started with the Internet of Things. New York: McGraw Hill Education; 2016. 16. Particle Docs. Photon Functional Description. Available from:https://docs.particle.io/datasheets/wifi/ photondatasheet.june,2021 17. Singhvi RK, Lohar RL, Kumar A, Sharma R, Sharma LD, Saraswat RK. IoT Basedsmart Waste Management System: India Prospective. In: 4th International Conference on Internet of Things: Smart Innovation and Usages (IoTSIU): IEEE; 2019. p. 1-6. 18. Kodali RK, Rajanarayanan SC. IOT Based Automatic LPG Gas Booking and Leakage Detection System. In: 11th International Conference on Advanced Computing (ICoAC): IEEE; 2019. p. 338-41. 19. Adhim FI, Priananda CW, Rahayu LP, Pramudijanto J, Tsauri DA, Susila J, et al. Carbon Monoxide and Methane Gas Identification System. In: International Conference in Advanced Mechatronics Intelligent Industrial Automation. ICAMIMIA: IEEE; 2019. p. 263-7. 20. Biswal A, Subhashini J, Pasayat AK. Air Quality Monitoring System for Indoor Environments Using IoT. In: AIP Conference Proceedings. Vol. 2112. Melville, NY: AIP Publishing LLC; 2019. p. 020180. 21. Ahmad A, Paul A, Rathore MM. An efficient divide- and-conquer approach for big data analytics in machine-to-machine communication. Neurocomputing 2016;174:439-53. 22. Available from: https://www.electronicwings.com/ particle/dht11-sensor-interfacing-with-particle-photon. [Last accessed on 2021 Sep 25]. 23. Ghimire N. Weather Station using Particle Photon; 2019. 24. Yu T, Zhang TQ. Design and Implementation of a PM2. 5 Dust Detection System Based on ZigBee. In: International Conference on Electronic Engineering and Informatics (EEI): IEEE; 2019. p. 260-4. 25. Available from: https://www.osha.gov/laws-regs/ regulations/standardnumber/1926/1926.55 26. Available from: https://www.cdc.gov/niosh/topics/ flavorings/limits.html. [Last accessed on 2021 Oct 04]. 27. Available from: https://www.handsontec.com/ dataspecs/4Ch-relay.pdf. [Last accessed on 2022 Jan 15]. 28. Available from: https://arduinogetstarted.com/tutorials/ arduino-controls-pump. [Last accessed on 2022 Feb 15]. 29. Availablefrom:https://www.rawlix.com/product/arduino- 4-channel-relay-module-board-637239363791411187. [Last accessed on 2022 Mar 01]. 30. Mishra A. Design and deployment of MQTT based HeTNeT using IEEE 802.15. 4 and IEEE 802.11 for internet of things. Int J Res Appl Sci Eng Technol. 2017;5:1616-25.