Professional Documents
Culture Documents
Development of A Cost-Effective IoT-Based Weather Monitoring System
Development of A Cost-Effective IoT-Based Weather Monitoring System
Development of a
Cost-Effective
IoT-Based Weather
Monitoring System
Debashish Mohapatra Bidyadhar Subudhi
National Institute of Technology Rourkela Indian Institute of Technology Goa
& IOT DEVICES ARE finding an ever-increasing use glucose, blood pressure, seizures, and industrial
in our everyday lives. From monitoring weather process monitoring, IoT devices are extensively
parameters across the globe for weather forecast- used to gather all sorts of data. One can use the
ing to health monitoring applications, such as blood commercially available solutions to use the data
from IoT devices in a specific field. However,
depending on certain situations, such as privacy,
Digital Object Identifier 10.1109/MCE.2021.3136833 security, and cost, one may choose to deploy his
Date of publication 4 January 2022; date of current version 17 own IoT platform using existing technologies.
August 2022.
September/October 2022 Published by the IEEE Consumer Technology Society 2162-2248 ß 2022 IEEE
81
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on March 21,2023 at 07:45:44 UTC from IEEE Xplore. Restrictions apply.
IoT-Based Weather Monitoring
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on March 21,2023 at 07:45:44 UTC from IEEE Xplore. Restrictions apply.
Figure 1. Typical IoT architecture utilizing MQTT.
One can choose the IoT platform based on the target IoT platform because of its ability to pro-
allowable portability, power consumption, and gram it remotely using the Jupyter integrated
device cost. A few of these widely available plat- development environment (IDE) for Python.
forms are noted in Table 1.
Since it was decided to use the existing Internet
connection for transmitting the data, any IoT plat- Choice of the Sensors for Weather Station
form with the Wi-Fi connectivity option could be For the demonstration purpose, we decided
selected. Table 1 shows that for a small weather to report the temperature, atmospheric pres-
station with four–five sensors, the best option is sure, and humidity. However, one can add ambient
the NodeMCU IoT board with ESP8266 system on a light, wind-speed, and various pollution indicators,
chip. However, the Raspberry Pi Zero W single- such as PM 2.5 particulates (or dust sensor), car-
board computer (SBC) was also selected as the bon dioxide, carbon monoxide, etc. Some of the
widely available sensors are listed in Table 2.
Linkit One9 260 MHz, ARM7 MCU Arduino IDE Wi-Fi, GSM 60
September/October 2022
83
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on March 21,2023 at 07:45:44 UTC from IEEE Xplore. Restrictions apply.
IoT-Based Weather Monitoring
In this experiment, three sensors are used: a CHOOSING THE IOT SERVER
DHT22 humidity sensor, a BMP085 atmospheric All IoT devices must either communicate to
pressure sensor, and a Sharp GP2Y1010AU0F dust a central server or with each other based on
sensor. Both DHT22 and BMP085 can provide tem- the requirement. Many different techniques can
perature readings, which reduces the number of be employed to establish communication with
sensors needed with the microcontroller. the IoT server. The MQTT protocol is the most
popular method to implement communication
Internet Connectivity Options between IoT devices over the Internet. In this
All IoT devices must talk over the Internet. experiment, it was decided to set up an IoT
Depending on how they are deployed in the field, server using open-source software.
one may choose any available option, enabling
the IoT device to communicate to the IoT server
over the Internet successfully. Therefore, if the Setting Up a Low-Cost VPS
IoT device is deployed in a remote area, global For a weather station to work as expected, the
system for mobile communications (GSM) can be IoT server needs to be running 24x7 and have a reli-
chosen. A GSM module can be used with all the able Internet connection. The IoT server need not
IoT devices mentioned previously to provide a have high hardware specifications, such as a dedi-
general packet radio service connection. More- cated server used to host commercial websites.
over, if an SBC such as the Raspberry Pi is chosen One can choose to deploy a virtual private server
as the IoT hardware, then a 3G/4G USB dongle for this purpose. Many reputed commercial VPS
can be used to provide the necessary Internet providers provide a VPS with limited resources for
connectivity. In this case, since the IoT device a reasonable and minimal fee. The most important
was to be kept just outside the laboratory’s win- feature of a VPS is that it remains online 24x7 so
dow, it was decided to use the existing Internet that when the IoT device reports the data, it is
connection of the lab via Raspberry Pi Zero W received by the IoT server and gets logged into the
and ESP8266’s integrated Wi-Fi connectivity. database for future analysis.
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on March 21,2023 at 07:45:44 UTC from IEEE Xplore. Restrictions apply.
Figure 3. IoT devices interfaced with an
atmospheric pressure sensor (BMP085) and a
humidity sensor (DHT22/AM2302). (a) Raspberry Pi
Zero W as IoT device. (b) ESP 8266 IoT device.
September/October 2022
85
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on March 21,2023 at 07:45:44 UTC from IEEE Xplore. Restrictions apply.
IoT-Based Weather Monitoring
greenhouse for sustainable agriculture,” IEEE Consum. and NodeMcu to IoT: Communication in Internet of
Electron. Mag., vol. 10, no. 4, pp. 57–62, Jul. 2021, Things,” Procedia Comput. Sci., vol. 132, pp. 1611–1618,
doi: 10.1109/MCE.2021.3055930. 2018, doi: 10.1016/j.procs.2018.05.126.
2. I. V. McLoughlin, “Open-source and consumer 9. H. Jiang, Y. Li, and D. Li, “Indoor environment
electronics—The back door to world domination: Why monitoring system based on Linkit One and Yeelink
reinvent the wheel (especially when nice people are platform,” in Proc. 2nd IEEE Int. Conf. Comput.
giving wheels away for free)?,” IEEE Consum. Commun., 2016, pp. 933–937, doi: 10.1109/
Electron. Mag., vol. 1, no. 2, pp. 53–58, 2012, compcomm.2016.7924841.
doi: 10.1109/MCE.2011.2181882. Debashish Mohapatra is currently an embedded
3. E. Moguel, M. Linaje, J. Galan-Jimenez, and C. systems developer at Pragathi Solutions, Bengaluru,
Vicente-Chicote, “Can consumer electronics be truly India. Mohapatra received the B.Tech. degree in
open,” IEEE Consum. Electron. Mag., early access, applied electronics and instrumentation engineering
May 17, 2021, doi: 10.1109/MCE.2021.3080660. from the Biju Patnaik University of Technology, Rour-
4. U. Hunkeler, H. L. Truong, and A. Stanford-Clark, “MQTT- kela, India, in 2005, and the M.Tech. degree in control
S—A publish/subscribe protocol for wireless sensor and automation and the Ph.D. degree in electrical
networks,” in Proc. 3rd Int. Conf. Commun. Syst. Softw. engineering from the National Institute of Technology
Rourkela, Rourkela, in 2015 and 2021, respectively.
Middleware Workshops, 2008, pp. 791–798, doi: 10.1109/
Contact him at admin@debashish.info.
COMSWA.2008.4554519.
5. R. A. Light, “Mosquitto: Server and client implementation Bidyadhar Subudhi is currently a professor with the
of the MQTT protocol,” J. Open Source Softw., vol. 2, School of Electrical Sciences, Indian Institute of Tech-
no. 13, p. 265, 2017, doi: 10.21105/joss.00265. nology Goa, Ponda, India. Subudhi received the B.S.
6. L. T. De Paolis, V. De Luca, and R. Paiano, “Sensor degree from the National Institute of Technology Rour-
data collection and analytics with Thingsboard and kela, Rourkela, India, in 1988 and the master’s degree
Spark streaming,” in Proc. IEEE Workshop Environ., from the Indian Institute of Technology Delhi, New Delhi,
Energy, Struct. Monit. Syst., 2018, pp. 1–6, India, in 1994, both in electrical engineering, and the
doi: 10.1109/eesms.2018.8405822. Ph.D. degree in control and instrumentation from the
University of Sheffield, Sheffield, U.K., in 2003. Contact
him at bidyadhar@iitgoa.ac.in.
Authorized licensed use limited to: Institut Teknologi Bandung. Downloaded on March 21,2023 at 07:45:44 UTC from IEEE Xplore. Restrictions apply.