Professional Documents
Culture Documents
Abstract—High concentrations of CO2 levels are significantly through an LCD screen and warns us with an audible alarm
present in closed environments that do not have proper venti- when the maximum levels established are exceeded [4]. The
lation. Such high concentrations generate negative health con- aforementioned studies [2], [3], [4] defend the importance of
sequences such as dizziness, headaches and various respiratory monitoring the levels of polluting gases, such as CO2 , existing
problems. For this reason, the design and implementation of inside a closed space. This, with the aim of analyzing indica-
a low-cost CO2 monitoring and control prototype is proposed
to optimize ventilation levels in closed spaces. The parameters
tors that allow reducing the spread of diseases in the short
that the proposed device measures are concentration of carbon and long term. The tendency of the authors in this regard is to
dioxide, humidity and temperature. A digital PID controller was develop portable prototypes that determine the concentration of
implemented, with the use of C++ programming language and harmful agents to health within the environment using low-cost
an exhaust fan to stabilize carbon dioxide levels within a closed sensors that provide information in real time, which seeks to
space. The aforementioned parameters can be viewed in two maintain adequate ventilation levels below the recommended
ways: The first way is locally through a LCD screen and LED limit.
indicators, and the second one, remotely using the free Arduino
IoT Cloud platform. The closed environment was emulated using CO2 is a gas that is released by human respiration and
a cardboard box and in the tests it was obtained that the this is adequate to measure ventilation levels [5]. Because
prototype manages to keep the CO2 concentration levels below the people exhale predictable levels of CO2 , a direct connection
established limit. However, this can be further improved by using to air pollution can be made [3]. This parameter is extremely
more precise sensors for more accurate results. It is expected important, since high concentrations of CO2 have very harmful
that this model can be successfully scaled to closed spaces such
effects on health [6]. On the other hand, the measurement
as classrooms and offices.
of other parameters of air quality, such as particulate matter,
Keywords—CO2 Monitoring; IoT; Low-cost Indoor Ventilation relative humidity and temperature, are very important as well.
System; NodeMCU; Open Source Software Environmental parameters, temperature and humidity, also
influence people’s well-being [7], [8] and these are necessary
I. I NTRODUCTION to have a correct indoor air quality index [2].
Currently, outdoor air pollution has increased in all coun- Some devices that has been previously designed to measure
tries due to the growth of automotive fleets and industrial different parameters from air quality have shown data in real
companies. This affects indoor environments with a significant time through the uses of displays. For example, an open
increase in CO2 levels in a proportion between 2 to 5 times source web platform was developed to display the information
more than outdoors [1]. An example of this is reflected inside provided by the sensors using a MySQL server for data storage
different environments such as classrooms, offices, bedrooms, [7]. ThingSpeak was also used, which is a free web platform
etc; where the CO2 concentration has values that exceed for the collection and representation of the measured variables
the maximum levels recommended by international standards. [3]. On the other hand, a mobile phone application called
These places do not have an adequate mechanical ventilation Dataplicity was used to remotely access the pollutant indicators
system to dissipate the polluting gases that are generated [9], whereas in another study only a 16x2 LCD screen was
inside, and even in many cases the doors and windows are kept used to fulfill the same purpose [10].
closed. Likewise, despite the fact that they have been designed
to accommodate a limited number of people, the maximum When considering the methodology used by some studies
capacity allowed is exceeded on a daily basis. to develop devices that measure air quality, diverse ones were
followed. For instance, a quantitative experimental investiga-
Different CO2 monitoring systems have been developed tion was applied in 10 schools and in 2 training centers for 8
for closed spaces that do not directly control this parameter. days and between 5 to 10 hours a day taking measurements
A CO2 prediction model has been developed based on the from different air quality sensors [11]. A similar methodolog-
history of measurements [2]. A user alert system has been also ical approach is applied using pollutant weighted calculation
proposed by means of text messages to the cell phone and an tools and the test is performed in 2 environments. The first is
email notification [3]. The information obtained is even shown a laboratory at the University of Warwick (England) during 1
www.ijacsa.thesai.org 529 | P a g e
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 3, 2022
ventilation level of the place will be safe. The values of The measurements from the sensors are sent to the Arduino
temperature, humidity and CO2 concentration will be sent to IoT Cloud platform. This platform is free, easy to use and all
the cloud, displayed on the LCD screen and there will be 3 standards are open source. In addition to being compatible with
LED indicators: green when the CO2 concentration is less than all Arduino boards, it also has compatibility with the ESP8266
1000 ppm, yellow when it is between the range 1000 - 1500 microcontroller, which is used by the NodeMCU module. This
ppm and red when higher than 1500 ppm. Fig. 13 shows the platform uses the MQTT protocol for data transmission and
logic used for programming the entire system. allows other interaction methods such as command line tools,
www.ijacsa.thesai.org 532 | P a g e
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 3, 2022
Fig. 15. View of the Cardboard Box where the Prototype was Tested.
its module are powered with 5V DC through an adapted cell
phone charger, the Node MCU, through a microUSB cable
connected to the laptop and the other components use 3V
made in the corners to hold the extractor with screws and DC provided by the development board. In the middle part
washers. This extractor will circulate the air from the inside to of the box it can be seen the dimmer that will function as a
the outside of the box when the CO2 levels are not within the pre-actuator, regulating the power delivered and enabling the
allowed ranges. One type of exhaust fan that should be used in connection between the control stage led by the NodeMCU
a real room is the AC180 model from the Broan brand, which and the power stage where the air extractor is located.
works at 200 VAC 50Hz. In addition, it consumes 18W of
power with an extraction capacity of 163 m3 / h and a noise Fig. 18 shows the local display stage made up of the
level of 45 Db, being indicated for residential environments 16x2 LCD screen, which provides us with information about
such as rooms, offices and classrooms. In a study conducted the values obtained from the CO2 concentration through the
in a city in India (Durgapur), 6 conventional ”cooler” type CSS811 sensor in ppm measurements, and the temperature and
air extractors were used to ventilate the CO2 produced in the relative humidity through the DHT11 sensor in ◦ C and %
small environment [8]. Also, in an office space in the same measurements, respectively.
country, generic mechanical ventilation was used, producing a
lot of noise [18], as well as a conventional extractor that was In Fig. 19, we roughly mimic the CO2 exhaled by people
activated when the carbon dioxide limits were exceeded [19]. through smoke generated by burning paper in order to perform
the tests. A quarter of rolled paper is set on fire and immedi-
It can be seen in Fig. 17 that inside the box the breadboard ately placed inside the box on a metal container, to finally close
was placed with the different components that intervene in the it. The exhaust fan would be located in a real environment at
system, such as the NodeMCU development board, the CO2 least 2.3 meters from the ground, embedded in the wall. In the
sensor, the temperature and humidity sensor, the LEDs and the same way, the prototype that contains the CO2 sensor must be
screen. LCD coupled to its I2C module. The LCD screen and mounted on the wall with the correct orientation, because CO2
www.ijacsa.thesai.org 534 | P a g e
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 3, 2022
In either of these two media, KPI indicators for humidity, the prototype be located within a structure with a degree of
temperature and CO2 concentration are displayed in real time protection IP (Ingress Protection), with the aim of resisting
with a history of up to 2 days. dust and humidity found in the environment. Likewise, it is
recommended to use CO2 sensors of the NDIR (Non Dis-
IV. C ONCLUSION persive Infrared Detector) type, since they are more accurate
for gas detection, easier to calibrate and have minimal error
In the present research work, a monitoring and control sys- percentages. Take into account the number of occupants and
tem of CO2 concentration in closed rooms has been developed the volume of the room, since the precision of the sensors to be
using low-cost components and a free software application used and the number of air extractors to install depends on this.
to view the data remotely through smartphones, laptops and Finally, to obtain accurate measurements it is recommended to
desktop computers. The results demonstrate its effectiveness install the structure approximately 1 meter from the ground.
compared to other studies, since after approximately 800 sec-
onds of having detected the high levels of CO2 concentration, it
reaches adequate levels, less than 1000 ppm, thus producing a R EFERENCES
healthy area for the exchange of air of the people who inhabit
it. The finished prototype would be located on the side of [1] S. Esfahani, P. Rollins, J. P. Specht, M. Cole y J. W. Gardner,“Smart City
the room for the correct detection of the parameters described Battery Operated IoT Based Indoor Air Quality Monitoring System”, en
2020 IEEE SENSORS, Rotterdam, 25–28 october 2020. 2020.
above.
[2] R. Xiahou, J. Yi, L. He, W. He y T. Huang, “Indoor air monitoring system
As a future work, it is suggested that the development of based on internet of things and its prediction mode’l’, Proceedings of
www.ijacsa.thesai.org 536 | P a g e
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 13, No. 3, 2022
the International Conference on Industrial Control Network and System C. H. G. Faria, C. Borrego y A. I. Miranda, “Indoor air quality study
Engineering Research (ICNSER), vol. 2019, pp. 58–63, 2019 using low-cost sensors”, en AIR POLLUTION 2020, 8–10 june 2020.
[3] R. K. Kodali, S. Pathuri y S. C. Rajnarayanan, “Smart Indoor Air Southampton UK: WIT Press, 2020.
Pollution Monitoring Station”, en 2020 International Conference on [14] F. Tahsiin, L. Anggraeni, I. Chandra, R. A. Salam y H. Bethaningtyas,
Computer Communication and Informatics (ICCCI), Coimbatore, India, “Analysis of Indoor Air QualityBased on Low-Cost Sensors”, Inter-
22–24 january 2020. IEEE, 2020. national Journal on Advanced Science, Engineering and Information
[4] C. Calvin Adrianto, Y. Calvinus y P. B. Mardjoko, “Design Of CO, CO2, Technology, vol. 10, n. 6, pp. 2627–2633, december 2020.
Temperature, Humidity, And Weather Monitoring System Based On [15] A. K. Kanal y T. Kovacshazy, “IoT Solution for Assessing the In-
Internet of Things (IoT) & Android”, IOP Conference Series: Materials door Air Quality of Educational Facilities”, en 2019 20th International
Science and Engineering, vol. 1007, p. 012175, december 2020 Carpathian Control Conference (ICCC), Krakow-Wieliczka, Poland,
[5] D. Thomas, B. Mistry, S. Snow y M. C. Schraefel, “Indoor Air Quality 26–29 may 2019. IEEE, 2019.
Monitoring (IAQ): A Low-Cost Alternative to CO2 Monitoring in [16] A. Mellit, M. Benghanem, O. Herrak y A. Messalaoui, “Design of
Comparison to an Industry Standard Device”, Advances in Intelligent a Novel Remote Monitoring System for Smart Greenhouses Using the
Systems and Computing, vol. 858, n. 1, pp. 1010–1027, 2018 Internet of Things and Deep Convolutional Neural Networks”, Energies,
[6] G. Marques y R. Pitarma, “IAQ Evaluation Using an IoT CO2 Monitor- vol. 14, n. 16, p. 15, august 2021.
ing System for Enhanced Living Environments”, en Advances in Intelli- [17] T. Pietrucha,“Ability to Determine the Quality of Indoor Air in Class-
gent Systems and Computing, Cham: Springer International Publishing, rooms without Sensors”, E3S Web of Conferences, vol. 17, p. 00073,
2018, pp. 1169–1177 2017.
[7] A. A. Hapsari, A. I. Hajamydeen, D. J. Vresdian, M. Manfaluthy, L. [18] S. N. Mabdeh, A. Al-Zghoul, T. Alradaideh, A. Bataineh y S. Ahmad,
Prameswono y E. Yusuf, “Real Time Indoor Air Quality Monitoring “Simulation study for natural ventilation retrofitting techniques in ed-
System Based on IoT using MQTT and Wireless Sensor Network”, en ucational classrooms – A case study”, Heliyon, vol. 6, n. 10, october
2019 IEEE 6th International Conference on Engineering Technologies 2020
and Applied Sciences (ICETAS), Kuala Lumpur, Malaysia, 20–21 de- [19] O. A. Postolache, J. M. D. Pereira y P. M. B. S. Girao, “Smart Sensors
cember 2019. IEEE, 2019. Network for Air Quality Monitoring Applications”, IEEE Transactions
[8] P. K. Sharma, B. Poddar, S. Dey, S. Nandi, T. De, M. Saha, S. Mondal on Instrumentation and Measurement, vol. 58, n.º 9, pp. 3253–3262,
y S. Saha, “On detecting acceptable air contamination in classrooms september 2009
using low cost sensors”, 9th International Conference on Communication [20] K. Shahzad y B. Oelmann, “A comparative study of in-sensor processing
Systems and Networks (COMSNETS), vol. 2017, pp. 484–487, 2017 vs. raw data transmission using ZigBee, BLE and Wi-Fi for data intensive
[9] D. Suriano, G. Cassano y M. Penza, “Design and Development of a monitoring applications”, en 2014 11th International Symposium on
Flexible, Plug-and-Play, Cost-Effective Tool for on-Field Evaluation of Wireless Communications Systems (ISWCS), Barcelona, Spain, 26–29
Gas Sensors”, Journal of Sensors, vol. 2020, pp. 1–20, august 2020. august 2014.
[10] P. Satyanarayana y R. Narmadha, “Implementation of Wireless Sensor [21] A. Zivelonghi y M. Lai, “Mitigating aerosol infection risk in school
Network Based Indoor Air Quality Monitoring System using GSM”, buildings: the role of natural ventilation, volume, occupancy and CO2
International Journal of Engineering and Advanced Technology, vol. 8, monitoring”, Building and Environment, vol. 204, p. 13, October 2021.
n. 6, pp. 4885–4889, august 2019. [22] J. Allen, J. Spengler, E. Jones, J. Cedeno-Laurent, “5-
[11] M. D. Fernández-Ramos, F. Moreno-Puche, P. Escobedo, P. A. Garcı́a- step guide to checking ventilation rates in classrooms”.
López, L. F. Capitán-Vallvey y A. Martı́nez-Olmos, “Optical portable Reporte tecnico, Harvard. https://schools.forh.ealth.org/wp-
instrument for the determination of CO2 in indoor environments”, content/uploads/sites/19/2021/01/Harvard-Healthy-Buildings-program-
Talanta, vol. 208, p. 120387, february 2020. How-to-assess-classroom-ventilation-10-30-2020-EN R1.8.pdf, 2020.
[12] J.-Y. Kim, C.-H. Chu y S.-M. Shin, “ISSAQ: An Integrated Sensing [23] L. V. de Abreu-Harbich, V. L. A. Chaves y M. C. G. O. Brandstetter,
Systems for Real-Time Indoor Air Quality Monitoring”, IEEE Sensors “Evaluation of strategies that improve the thermal comfort and energy
Journal, vol. 14, n. 12, pp. 4230–4244, december 2014. saving of a classroom of an institutional building in a tropical climate”,
Building and Environment, vol. 135, pp. 257–268, may 2018
[13] M. Lopes, J. Reis, A. P. Fernandes, D. Lopes, R. Luorenco, T. Nunes,
www.ijacsa.thesai.org 537 | P a g e