You are on page 1of 5

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/329039804

Monitoring Indoor Air Quality by using IoT Technology

Conference Paper · August 2018


DOI: 10.1109/INTERCON.2018.8526380

CITATIONS READS
0 2,085

5 authors, including:

John Esquiagola Matheus Manini


University of São Paulo 6 PUBLICATIONS   17 CITATIONS   
8 PUBLICATIONS   18 CITATIONS   
SEE PROFILE
SEE PROFILE

Arthur Sequeira Aikawa Leopoldo Yoshioka


University of São Paulo University of São Paulo
3 PUBLICATIONS   3 CITATIONS    24 PUBLICATIONS   19 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

OrbeVR - The Orbit Display View project

EDUCADAISY View project

All content following this page was uploaded by Leopoldo Yoshioka on 19 November 2018.

The user has requested enhancement of the downloaded file.


Monitoring Indoor Air Quality by using IoT
Technology
J. Esquiagola, M. Manini, A. Aikawa, L.Yoshioka and M. Zuffo
Omni Electronica Inc, Sao Paulo
Sao Paulo University, Electronic Systems Department
Email: {john,matheus,arthur,leopoldo,mkzuffo}@usp.br

Abstract—Millions of people worldwide die prematurely as There are many reports that demonstrate insufficient IAQ
a consequence of air pollution. Many of these deaths occur levels can generate health problems to building occupants
in large cities, where exhaust from cars, factories, and power [4] [5]. Web of things defines standards and protocols to
plants fills the air with hazardous particles. Indoor air pollution
can be higher than outdoor concentrations up to ten times be used in IoT applications[6]. Based on this concept, IoT
due to incorrect functionality of heating, ventilation, and air applications can be wrapped into RESTful web services.
conditioning (HVAC) system. Internet of Things can help to It reduces the complexity of applications and to improve
perform a real time monitoring of indoor air quality by using software re-usability [7]. They use a uniform interface, taking
embedded electronics, software, sensors, and connectivity. One advantage of Hypertext Transfer Protocol (HTTP) commands
approach that is gaining momentum is the Web of Things, that
uses web architecture and web standards as a framework for and applying them to resources (things pointed by URIs)
creating IoT applications. In this paper, an IoT platform for using the REST architectural style. CoAP (Constrained
monitoring indoor air quality is presented. The implementation Application Protocol)[8] is a standard application protocol,
is based on the Web of Things concept and uses CoAP protocol designed to implement RESTFul in constrained devices [9].
to collect data from sensors. Hardware platform developed for Then, CoAP can be considered the ideal protocol for M2M
this project is also presented and implementation details are
described. and IoT applications where resources are limited.
Keywords-Air Quality, Internet of Things, CoAP.
In this paper, we present our IoT solution for monitoring
I. I NTRODUCTION indoor environments. We focus on the main parameters that
determine the indoor air quality inside buildings like offices,
The Internet of Things (IoT) is considered a new technology hospitals, homes, schools, etc. This work is an evolution of
in which devices and/or machines interact with each other a previous work which has presented the initial stage of the
in order to build a new global network [1]. It is expected platform and another methodology [10]. We have developed
to change many aspects of human life such as education, our custom hardware, firmware and software regarding to
communication, business, and science. IoT can be seen as present a complete solution from specification until visualiza-
the next evolution of the Internet, where huge amounts of tion of results. Our solution uses the CoAP protocol to perform
data can be collected and analyzed to generate important the communication between devices and follow the Web of
and useful information [2]. With the adoption of the IoT things paradigm. The remainder of this paper is organized
technology, things are able to see, hear, think and execute as follows: Section II presents the related work about IoT
tasks based on some decision taken by themselves [3]. Air solutions for air quality monitoring. Section III highlights the
pollution monitoring is considered as a very complex task architecture overview of our IoT platform. Section IV details
but it is very important. Traditionally data loggers were a case of study of the solution and initial results and analysis
used to collect data periodically and this was very time are presented in Section V. Section VI concludes the paper
consuming and quite expensive. The control and monitoring with final considerations and future work.
of indoor air conditions represents an important task with
the aim of ensuring suitable working and living spaces to II. R ELATED W ORK
people. However, the comprehensive air quality monitoring
which include monitoring of temperature, humidity, air In the IoT field, there are lots of applications being de-
quality, etc., is not so easy to be monitored and controlled. veloped by the academic and industry communities. IoT are
Indoor Air Quality (IAQ) can be affected by several agents considered Wireless Sensor Network (WSN) with specific
or parameters like temperature, humidity, volatile organic Internet interface to deploy the information in the cloud. It
compounds (VOC), particulate matter (PM), aerosols, etc. is an active field of research due to its emerging importance
in many applications including environment and habitat mon-
This work was supported by grant 2015/22209-4 and 2016/15514-8 from itoring, health care applications, traffic control and military
Sao Paulo Research Foundation (FAPESP) network systems. A sensor network for indoor air quality
978-1-5386-5491-0/18/$31.00 2018
c IEEE monitoring which consists of a base station connected to
the internet and several nodes sensors regarding to measure inserted to the MariaDB database which can be stored locally
temperature, humidity, light and air quality is presented in or sent to a remote server (cloud system). 6LowPAN protocol
[11]. The standard IEEE 802.15.4 (Zig-Bee protocol) using is the base of the communication between all individuals of
the XBee module was utilized to perform the communication the network. The 6LoWPAN (IPv6 over Low-Power Wireless
between the nodes and the host. A proposed wireless sensor Personal Area Networks) standard makes use of techniques
network (WSN) for monitoring the carbon monoxide levels of and rules for reducing headers and packets while making the
an indoor environment is presented in [12]. Temperature and translation to common protocols, such as IP. It enables the use
humidity of the air are also acquired in the real-time. Sensor of the integrated 802.15.4 standard for IP addressing.
nodes collect the data and update a web database which can
be monitored though a website. It uses the Zigbee protocol
A. Hardware
based on the Waspmote board. The system can send alarms in
case of an emergency by using a GSM/GPRS module. There According to the architecture, there are three main hardware
are other solutions related air quality but they are focused modules: Gateway, border router and sensor nodes. The Gate-
on urban pollution where pollutants are different from the way performs the requests to collect data from sensors. It also
indoor pollutants [13] [14] [15]. IoT solutions that cover stores all data in a local database and can execute some pre-
Indoor Air Quality use Arduino-based hardware and they only processing tasks. Raspberry Pi 3 was selected as a gateway
collect temperature, humidity, light and more one parameter because it provides reasonable functionalities to execute the
like carbon monoxide. Our solution gather specific indoor air gateway tasks and it offers a great scalability factor. The whole
quality parameters like TVOC and particulate material and system can be booted from a Micro SD card, which can be
uses Web of Things approach. separately reproduced. It is also very compact and easy to
configure and maintain. Raspbian linux was installed and used
as a operating system of the platform. The second component
is the border router which establishes the communication
between the gateway and the sensor nodes. It can be con-
sidered an interface between the IPv6 and IPv4 networks. In
our platform, the Launchpad CC2650 kit performs the border
router functionality and uses the RPL protocol to create the
IPv6 network. The communication between the gateway and
border router is done through an UART interface. The sensor
nodes are designed to incorporate until ten sensors but in
this initial version only six parameters are used: Temperature,
Humidity, Pressure, Particulate Material, TVOC and eCO2.
Each sensor node have an RF communication interface to send
out the acquired data. Thus, the node hardware utilizes a Texas
Instruments CC2650MODA which performs the communica-
tion between the node and the gateway.

Fig. 1: IoT System Architecture

III. I OT S YSTEM A RCHITECTURE


The proposed Indoor Air Quality monitoring system was
designed and developed to obtain a fine-grain record of in-
door environment conditions. The parameters monitored were
chosen, so that the following conditions could be studied: Fig. 2: IAQ Sensor Node
hygrothermal comfort, IAP and system operation optimization.
The system architecture of the platform is shown in Figure 1. The final hardware is shown in the figure 2. The design,
The system is composed of sensor nodes, a border router and specification and validation of the hardware was completely
a gateway that collect data acquired by each sensor node. developed by the authors. The PCB (Printed Circuit Board)
Gateway performs CoAP requests through the border router is 7.7 x 6.3 cm and it can be considered small for a hardware
which communicates with the sensor nodes. Data collected is with ten sensors.
B. Firmware C. Software
The sensor nodes were programmed with the latest version The gateway is a main component of the system which
of the Contiki Operating System [16]. It provides performance, needs to perform requests, receive and pre-process data, store
stability and good documentation. Contiki advantages are in a local database and finally to send to the cloud. It runs un-
the availability of timers, networking and many other tools der Linux raspbian, then it needs to execute specific programs
developed by the Contiki community. All sensor devices use to perform all activities. Python scripts are used to implement
the I2C protocol, then specific Texas Instruments libraries these tasks and MariaDb database is used to store the data
are used to implement the sensor drivers. CoAP protocol was locally. The border router activation and the collecting script
used to establish the communication between the devices was implemented by specific daemons that runs at the system
and the gateway. It uses a client-server communication based boot. Besides there are two cron jobs running each 5 minutes
on requests like HTTP protocol. Then, there are GET, PUT, to guarantee the data is always being collected. Figure 5
POST and DELETE commands to request data from the shows the log file with the sensors data information. Fields
sensors. Contiki community provides some examples to are defined like: datetime, address, temperature, humidity,
implement CoAP requests based on Erbium REST server. A pressure. eco2, tvoc, pm10, pm25 and pm100.
mini Coap server was implemented for each sensor available
in our hardware. It allows to expose the sensor like a web
resource. Each sensor node is configured with an IPV6
address and offers its resources like the following example:

coap://IPV6-ADDR:5683/sensors/temp
coap://IPV6-ADDR:5683/sensors/hum
coap://IPV6-ADDR:5683/sensors/pm10
Fig. 5: Sensors data
Figure 3 shows a typical CoAP transaction used in our
solution. There are a URL that uses IPV6 address to identify To visualize the data a Ubidots plataform is used
our node sensor and the URI path ( sensors/temp ) allows to (www.ubidots.com). This platforms offers a framework to
access the resource available. capture, process and visualize data in real time. It provides an
API which allows devices to be connected with the platform.
Several protocols are supported: MQTT/HTTP/TCP/UDP. In
our specific case, a python script utilizes the HTTP API to
send the data from the gateway to the Ubidots platform.
IV. C ASE OF S TUDY
The object of the experimentation is a work office inside a
building called CIETEC located in So Paulo University. It
is a multi-disciplinary center where many people work in
academic and industrial projects. From five to eight people
daily works in this environment which has approximately
15m2 . Three sensor nodes, a border router and a gateway were
Fig. 3: CoAP GET Temperature Request
deployed in the office. The sensors collect information each
30 seconds, stored locally in the local database and send to the
In the case of border router, a specific tunneling code is cloud for visualizing in the Ubidots platform. Each sensor was
used to establish the communication between the gateway and programmed with a specific IPv6 address to be identified in
the sensor nodes. Contiki provides a program called tunslip6, the 6LowPAN network. A Ubidots dashboard was configured
which bridges the border router to the host via a tun interface to received the data and to visualize the eight parameters
(tun0). Figure 4 shows the routes being identified by the border being collected. Figure 6 shows the dashboard of the Ubidots
router after a GET request. Two sensor nodes are presented in platform.
the IPV6 network: ...3a3a:51 and ...3a3a:52.
V. R ESULTS
Figure 6 only shows the data for one day, so the first analysis
to be performed are related to particulate material and tvoc.
An increase of the Tvoc and Eco2 occurs at 12pm, it is the
time when people go and back from lunch time. Humans are
natural generator of VOC so probably this increasing quantity
is revealing the presence of many people at the same time in
Fig. 4: Border Router IP Routes the office. Particulate material levels are correct for a typical
Fig. 6: Dashboard of Indoor Air Quality

office, so in this case it reflects the movement of the persons [5] G. De Gennaro, G. Farella, A. Marzocca, A. Mazzone, and M. Tutino,
inside the office because when we move stuff or something “Indoor and Outdoor Monitoring of Volatile Organic Compounds in
School Buildings: Indicators Based on Health Risk Assessment to Single
else we just move the dust to the air. If we detect some weird out Critical Issues,” International Journal of Environmental Research
increase maybe we can say some pollutant has entered in the and Public Health, vol. 10, no. 12, pp. 6273–6291, Dec. 2013. [Online].
office from external source. Available: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3881113/
[6] W3C-Group, “Direct to device connectivity in the Internet of Things,”
”https://www.w3.org/WoT/”, 2016, [Online; accessed January-2016].
VI. C ONCLUSION AND FUTURE WORK [7] W. Colitti, K. Steenhaut, and N. De Caro, “Integrating wireless sensor
networks with the web,” Extending the Internet to Low Power and Lossy
This work presents the implementation of an Iot platform for Networks (IP+SN 2011), 2011.
monitoring indoor air quality. We have developed our custom [8] “Constrained RESTful Environments (CoRE) Link Format,”
sensor hardware, firmware and software to collect the sensors ”https://tools.ietf.org/html/rfc6690”, 2012, [Online; accessed 27-
August-2015].
information and to send to the dashboard for visualization. [9] IETF, “The Constrained Application Protocol (CoAP),”
Advanced sensor technologies were used to obtain accurate ”https://tools.ietf.org/html/rfc7252”, 2014, [Online; January-2016].
results of the parameters which affects the indoor air quality. [10] J. Esquiagola, M. Manini, A. Aikawa, L. Yoshioka, and M. Zuffo, “Spiri:
Low power iot solution for monitoring indoor air quality,” in Proceedings
We have deployed our system in an office and preliminary of the 3rd International Conference on Internet of Things, Big Data and
results give us valuable information about air quality behavior Security - Volume 1: IoTBDS,, INSTICC. SciTePress, 2018, pp. 285–
during the day. For our future research, we plan to continue 290.
[11] J. Lozano, J. I. Suarez, P. Arroyo, J. M. Ordiales, and F. Alvarez,
the real time monitoring and try to emulate real situations in “Wireless sensor network for indoor air quality monitoring,” Chemical
an indoor environment like cooking, smoking and painting and Engineering Transactions, vol. 30, p. 319324, Sep 2012. [Online].
analyze the results. Other future research is the implementation Available: http://doi.org/10.3303/CET1230054
[12] D. T. Pham, D. C. Nguyen, V. V. Pham, V. L. Do, and D. T. Tran,
of some techniques to improve the IAQ and to clean the air “Development of a wireless sensor network for indoor air quality
inside the indoor environments. monitoring,” ICDV: the 2015 International Conference on Integrated
Circuits, Design, and Verification, vol. 4, August 2013.
[13] P. Raju, R.V.R.S.Aravind, and S. Kumar, “Pollution monitoring system
R EFERENCES using wireless sensor network in visakhapatnam,” International Journal
of Engineering Trends and Technology (IJETT), vol. 4, p. 591595, April
[1] I. Lee and K. Lee, “The Internet of Things (IoT): Applications,
2013.
investments, and challenges for enterprises,” Business Horizons,
[14] R. V. P. Y, , M. S. Baig, R. K. Mishra, R. P, D. U.B,
vol. 58, no. 4, pp. 431–440, 2015. [Online]. Available:
and M. S. and, “REAL TIME WIRELESS AIR POLLUTION
http://www.sciencedirect.com/science/article/pii/S0007681315000373
MONITORING SYSTEM,” ICTACT Journal on Communication
[2] D. Evans, “The Internet of Things - How the Next Evolution of the
Technology, vol. 02, no. 02, pp. 370–375, jun 2011. [Online]. Available:
Internet is Changing Everything,” CISCO white paper, no. April, pp.
https://doi.org/10.21917/ijct.2011.0051
1–11, 2011.
[15] K. K. Khedo, R. Perseedoss, and A. Mungur, “A wireless sensor
[3] A. Al-Fuqaha, M. Guizani, M. Mohammadi, M. Aledhari, and
network air pollution monitoring system,” International Journal of
M. Ayyash, “Internet of Things: A Survey on Enabling Technologies,
Wireless & Mobile Networks, vol. 2, no. 2, pp. 31–45, may 2010.
Protocols, and Applications,” IEEE Communications Surveys and Tuto-
[Online]. Available: https://doi.org/10.5121/ijwmn.2010.2203
rials, vol. 17, no. 4, pp. 2347–2376, 2015.
[16] A. Dunkels, B. Gronvall, and T. Voigt, “Contiki - a lightweight and
[4] C. Zhou, Y. Zhan, S. Chen, M. Xia, C. Ronda, M. Sun, H. Chen,
flexible operating system for tiny networked sensors,” in 29th Annual
and X. Shen, “Combined effects of temperature and humidity
IEEE International Conference on Local Computer Networks, Nov 2004,
on indoor VOCs pollution: Intercity comparison,” Building and
pp. 455–462.
Environment, vol. 121, pp. 26–34, Aug. 2017. [Online]. Available:
http://www.sciencedirect.com/science/article/pii/S0360132317301737

View publication stats

You might also like