An Iot Based Air Pollution Monitoring System For Smart Cities
An Iot Based Air Pollution Monitoring System For Smart Cities
An Iot Based Air Pollution Monitoring System For Smart Cities
Abstract—As the world’s population is becoming enabled WSN technology is the future for the coming smart
increasingly urban, the cities are under pressure to remain cities around the world [8].
livable. In recent years, the air quality of the cities has become
one of the major cause of concern around the world. Thus, it is Real-time monitoring of the air quality requires the live
necessary to constantly monitor the air quality index of a city to data transfer between the devices over the internet and it can
make it smart and livable. In this paper, we propose and develop be visualized using an Android Application. It reduces the
an IoT based Air Quality Monitoring System for Smart Cities. mobilization of system hardware at different locations, which
The real-time data of the air quality is accessed through the is cost efficient as only one-time installation cost is involved.
smart devices and analyzed to measure the impact on city In the Internet of Things (IoT) based applications [9],
dwellers. The smart devices are capable of measuring the Raspberry pi 3B, having a wide range of specifications, is the
Temperature, Humidity, Carbon Monoxide, LPG, Smoke and mainstay of the system. It not only gathers data from various
other hazardous particulate matters like PM2.5 and PM10 levels sensors via an inbuilt Wi-Fi module but is also responsible to
in the atmosphere. The gathered data is accessible globally send the recorded data to the ThingSpeak [10], an open source
through an Android Application. cloud platform on which data can be stored and retrieved via
hypertext transfer protocol (HTTP) over the internet.
Keywords—Internet of Things; Air Quality; Smart Cities; ThingSpeak acts as a platform to store real-time sensor data
Smart App
and also used to plot graphs, charts, create plugins and apps
I. INTRODUCTION for collaborating with web services, social network and other
application program interface (API). Once signed in, a
In today’s world, air pollution, climate change, and its channel is created with a unique Channel ID. The primary
consequences are of a great concern to the environmentalists feature of ThingSpeak is the term Channel in which there are
and climate change scientists [1]. Emission of various eight fields for data storage, three fields to store latitude,
poisonous gases from industries and vehicles are not only longitude and elevation and one field to write a short message
hazardous for the terrestrial organism, but the marine life is to describe the data. Once the channels are created in
also getting adversely affected. As the world’s population is ThingSpeak, the data can be implemented and alternately one
becoming increasingly urban, the cities are under pressure to can process and visualize the information through various
remain livable. Health problems arising due to poor air quality resources and platform, one of them being on an Android
are in increase like stroke, heart diseases, lung cancer, Application, designed in Android Studio. The increased
respiratory diseases including asthma [2]. Poor air quality demand for service over the internet has necessitated the data
poses a significant risk to the vulnerable section of the society collection and exchange in an efficient manner. IOT has
such as children, asthmatic, pregnant women, and the elderly promised the ability to provide the efficient data storage and
persons. As per WHO statics, millions of premature death exchange by connecting the physical devices and vehicles via
cases are reported due to air pollution every year worldwide electronic sensors and internet.
[3]. Due to this, in recent years, the air quality of the cities has
become one of the major cause of concern around the world Thus, in order to achieve efficient IOT accomplishment
[4]. Thus, it is necessary to constantly monitor the air quality for an application; the proper sensing and monitoring system
index of a city to make it smart [5] and livable [6-8]. is essential. The devices can communicate with each other via
Machine to Machine (M2M) communication and the physical
Around the world, governments are building the smart devices can be controlled digitally [11]. An IOT based
cities to keep a check on these problems and provide a healthy monitoring system can be one possible solution. For example,
life for its inhabitants. The Indian government is in the process a device can be installed in factories that can constantly
to build 100 smart cities by 2050. These cities will utilize monitor the working of the installed machines and if any
advanced communication network, WSNs, and intelligent malfunctioning is detected, a message can be passed on
system to solve future challenges and create new services. immediately to the controlling unit so that further action can
Although the Indian cities have installed real-time air quality be taken and damage can be avoided.
monitoring systems in Delhi and other cities, low-cost IoT
Authorized licensed use limited to: GITAM University. Downloaded on August 29,2022 at 06:17:53 UTC from IEEE Xplore. Restrictions apply.
ICSETS 2019 174
Authorized licensed use limited to: GITAM University. Downloaded on August 29,2022 at 06:17:53 UTC from IEEE Xplore. Restrictions apply.
ICSETS 2019 175
research work, ThingSpeak is chosen due to its ease of use and of up to 2.5 Amps. The Raspberry Pi acts as a gateway. In
user-friendly interface. IOT, a gateway is a system that links the data collected by the
sensors to the cloud. In order to interface an external
E. Android Application MCP3208, the primary aim is to install and enable the Serial
The app designed in the android studio is created in such a Peripheral Interface (SPI) interface. A python library is then
way that it fetches the data in real time from ThingSpeak with created so that MCP3208 and Raspberry Pi can work together.
the help of an API. The readings of the various sensors along
with the date and time are displayed in a tabular format in the
app. Applications are handy as they are easy to access through
our mobile phones. A user needs to simply sign in with an
Email or with Google to further witness the content of the
application.
III. IMPLEMENTATION OF THE SYSTEM
This section comprises the elements that were involved in
the implementation of this system and the integration of these
elements with the system.
Fig. 4. Smoke, Humidity, PM10 and LPG content in atmosphere over the
Time.
Fig. 6. The PM 2.5 content in atmosphere over the Time.
A. Sensor interface with Raspberry Pi
Raspberry Pi is a kind of minicomputer and the model, Data stored on the public channel can be shared with
Raspberry Pi 3B, used in this research work has an inbuilt Wi- others but in order to connect with a private channel, a valid
Fi, Broadcom BCM2837 64-bit quad core 1.2 GHz CPU and API key is required. ThingSpeak supports a web and
40 general purpose input output pins (GPIO) and many more application server and thus the API supports programming
other features. The board can be powered with a power bank languages like Python, Ruby and Node.js.
Authorized licensed use limited to: GITAM University. Downloaded on August 29,2022 at 06:17:53 UTC from IEEE Xplore. Restrictions apply.
ICSETS 2019 176
Authorized licensed use limited to: GITAM University. Downloaded on August 29,2022 at 06:17:53 UTC from IEEE Xplore. Restrictions apply.
ICSETS 2019 177
Proceedings of the IEEE First International Smart Cities Conference [9] Arun Kumar, et al., "Implementation of Smart LED Lighting and
(ISC2’15). 25-28 Oct. 2015 Guadalajara, Mexico. Efficient Data Management System for Buildings", Energy Procedia,
[4] Sarath K., Guttikundaab, R., "Health impacts of particulate pollution in December 2017. Vol. 143, pp. 173-178.
a megacity—Delhi, India", Environmental Development, April 2013. [10] Marcello A. Gómez Maureira, D.O., Livia Teernstra, "ThingSpeak —
Vol. 6, pp. 8-20. an API and Web Service for the Internet of Things", LIACS, Leiden
[5] C. Kaiwen, et al. "An Intelligent Home Appliance Control-based on University.
WSN for Smart Buildings", In the Proceedings of the IEEE [11] Ming Zhao, et al., "Machine-to-Machine Communication and Research
International Conference on Sustainable Energy Technologies Challenges: A Survey", Wireless Personal Communications, 2017.
(ICSET), Hanoi, Vietnam, 14-16 November 2016, pp. 282-287. Vol. 97(3), pp. 3569-3585.
[6] J. Dutta, et al., "AirSense: Opportunistic crowd-sensing based air [12] https://www.pololu.com/file/0J309/MQ2.pdf.
quality monitoring system for smart city", In the Proceedings of the [13] DHT11, DHT22 and AM2302 Sensors by lady ada, https://cdn-
IEEE SENSORS, 30 Oct.-3 Nov. 2016 Orlando, FL, USA. learn.adafruit.com/downloads/pdf/dht.pdf.
[7] Kwok Wai Tham, et al., "A Wireless Sensor-Actuator Network for [14] Arun Kumar, H.Y.S., Kai Juan Wong, Peter H. J. Chong, "Location-
Enhancing IEQ", In the Proceedings of the The 15th Conference of the Based Routing Protocols for Wireless Sensor Networks: A Survey",
International Society of Indoor Air Quality & Climate (ISIAQ) 2018. Wireless Sensor Network, 2017, Vol. 9(1), pp. 25-72.
Philadelphia, PA, USA,.
[15] Laser PM2.5 Sensor specification, Product model: SDS018
[8] W. Wang, Y. Yuan, and Z. Ling, "The Research and Implement of Air
Quality Monitoring System Based on ZigBee", In the Proceedings of http://www.innovazionelocale.it/wp-
content/uploads/2018/01/DS018LaserPM2.5ProductSpecV1.5.pdf.
the 7th International Conference on Wireless Communications,
Networking and Mobile Computing (WiCom). 23-25 Sept. 2011
Wuhan, China
Authorized licensed use limited to: GITAM University. Downloaded on August 29,2022 at 06:17:53 UTC from IEEE Xplore. Restrictions apply.