IEEE Consumer Electronics Magazine - September/October 2022 - 82

IoT-Based Weather Monitoring
In this article, we explore such a deployment to
build a local weather station using IoT devices.
Recent works have been done in this field demonstrating
the successful use of IoT devices to monitor
weather data for smart agriculture.1 The use of
open-source platforms has two crucial advantages.
First, being open source, their design can be integrated
into a consumer product with ease. All the
design schematics are readily available without
any significant investments to buy Intellectual
property rights, which keeps the cost of the end
product low. This also makes the time-to-market
faster than developing the hardware from
scratch.2 This helps a producer who is just venturing
out into producing consumer technology
instead of being a passive consumer. Second, the
producer can ensure no hidden loopholes or back
doors in any of the hardware or software by using
open-source technologies. The developers have a
clear picture of developing or improving upon the
low-level open-source codes for the programmable
IoT devices,3 which increases privacy and safety.
High-volume production of the consumer product
will benefit the producer in terms of profit generated
from increased sales, whereas it will become
more affordable for the consumer.
This article describes how we have chosen
between the widely available IoT devices and
sensors. The setup of an IoT server with the
MQTT protocol4,5 from the ground-up has also
been explained. A real-time dashboard has been
configured to show the incoming data from the
IoT devices using the Thingsboard application.6
MOTIVATION
Commercially available IoT weather-monitoringsystems
areclosedsourcein nature. We
believe closed-source software lead to monopoly
of corporations. Open-source software enables
other manufacturers to modify, develop, and
improve upon it. Moreover, for a privacy concerned
consumer, he/she can look into the source
code of the open-source software to ensure his
rights to privacy are honored by the device manufacturer,
whereas in closed-source software it is
not possible.
CONTRIBUTION
The contribution of this work is to demonstrate
the feasibility of developing and deploying a proofof-concept
scalable IoT weather station using
open-source technologies, which can be adapted
and extended by consumer technologyproducers.
82
IOT ARCHITECTURE
Figure 1 shows the IoT architecture of the proposed
weather station to be designed. The IoT
nodes consist of the IoT processor/microcontroller,
such as a Raspberry Pi7
or a NodeMCU
ESP8266.8 The sensors are connected to the
nodes via different interfaces, such as analog-todigital
converter, I2C, one-wire, or Serial Peripheral
Interface Bus. The IoT nodes are connected
to the IoT server via the Internet. The IoT server
runs on a remote computer, in this case, a VPS.
The IoT server consists of a service that listens to
the new data incoming from the IoT nodes. MQTT
is one such protocol that handles transmitting
and receiving data to and from IoT devices. A
database is installed on the IoT server to store
the device telemetry data for future analysis. The
Thingsboard application programming interface
(API) provides user commands to access the data
or modify any settings of the IoT server. The
Thingsboard server has a real-time dashboard,
via which users can see and configure the realtime
device telemetry data and historical data.
The Thingsboard API also provides the means to
query the server's data via secured hypertext
transfer protocol (HTTPS) post commands, which
helps analyze the data using external tools, such
as machine learning tools available with Python.
IOT HARDWARE
For every IoT application, the IoT hardware is
that interacts with the environment. The first
component of any IoT hardware is the one that
receives some input from the environment.
Depending on the desired input, it can be a
microphone, a motion sensor, or a sensor
designed to measure any environmental parameter
such as temperature, barometric pressure,
humidity, and dust particulates. The IoT device
can also be an end-user device, such as a smart
light bulb or a smart speaker. What is common
with IoT devices is communicating with a server
or with each other over the Internet.
There are many choices available to choose IoT
hardware. In this demonstration, it was decided to
design a weather station on an IoT platform using
open-source and low-cost sensors.
Choosing the IoT Client/Node
Any embedded microprocessor or microcontroller
can be used as the IoT client to send the
data to the server/logger. One can choose from
many available open-source hardware platforms.
IEEE Consumer Electronics Magazine

IEEE Consumer Electronics Magazine - September/October 2022

Table of Contents for the Digital Edition of IEEE Consumer Electronics Magazine - September/October 2022

Contents
IEEE Consumer Electronics Magazine - September/October 2022 - Cover1
IEEE Consumer Electronics Magazine - September/October 2022 - Cover2
IEEE Consumer Electronics Magazine - September/October 2022 - Contents
IEEE Consumer Electronics Magazine - September/October 2022 - 2
IEEE Consumer Electronics Magazine - September/October 2022 - 3
IEEE Consumer Electronics Magazine - September/October 2022 - 4
IEEE Consumer Electronics Magazine - September/October 2022 - 5
IEEE Consumer Electronics Magazine - September/October 2022 - 6
IEEE Consumer Electronics Magazine - September/October 2022 - 7
IEEE Consumer Electronics Magazine - September/October 2022 - 8
IEEE Consumer Electronics Magazine - September/October 2022 - 9
IEEE Consumer Electronics Magazine - September/October 2022 - 10
IEEE Consumer Electronics Magazine - September/October 2022 - 11
IEEE Consumer Electronics Magazine - September/October 2022 - 12
IEEE Consumer Electronics Magazine - September/October 2022 - 13
IEEE Consumer Electronics Magazine - September/October 2022 - 14
IEEE Consumer Electronics Magazine - September/October 2022 - 15
IEEE Consumer Electronics Magazine - September/October 2022 - 16
IEEE Consumer Electronics Magazine - September/October 2022 - 17
IEEE Consumer Electronics Magazine - September/October 2022 - 18
IEEE Consumer Electronics Magazine - September/October 2022 - 19
IEEE Consumer Electronics Magazine - September/October 2022 - 20
IEEE Consumer Electronics Magazine - September/October 2022 - 21
IEEE Consumer Electronics Magazine - September/October 2022 - 22
IEEE Consumer Electronics Magazine - September/October 2022 - 23
IEEE Consumer Electronics Magazine - September/October 2022 - 24
IEEE Consumer Electronics Magazine - September/October 2022 - 25
IEEE Consumer Electronics Magazine - September/October 2022 - 26
IEEE Consumer Electronics Magazine - September/October 2022 - 27
IEEE Consumer Electronics Magazine - September/October 2022 - 28
IEEE Consumer Electronics Magazine - September/October 2022 - 29
IEEE Consumer Electronics Magazine - September/October 2022 - 30
IEEE Consumer Electronics Magazine - September/October 2022 - 31
IEEE Consumer Electronics Magazine - September/October 2022 - 32
IEEE Consumer Electronics Magazine - September/October 2022 - 33
IEEE Consumer Electronics Magazine - September/October 2022 - 34
IEEE Consumer Electronics Magazine - September/October 2022 - 35
IEEE Consumer Electronics Magazine - September/October 2022 - 36
IEEE Consumer Electronics Magazine - September/October 2022 - 37
IEEE Consumer Electronics Magazine - September/October 2022 - 38
IEEE Consumer Electronics Magazine - September/October 2022 - 39
IEEE Consumer Electronics Magazine - September/October 2022 - 40
IEEE Consumer Electronics Magazine - September/October 2022 - 41
IEEE Consumer Electronics Magazine - September/October 2022 - 42
IEEE Consumer Electronics Magazine - September/October 2022 - 43
IEEE Consumer Electronics Magazine - September/October 2022 - 44
IEEE Consumer Electronics Magazine - September/October 2022 - 45
IEEE Consumer Electronics Magazine - September/October 2022 - 46
IEEE Consumer Electronics Magazine - September/October 2022 - 47
IEEE Consumer Electronics Magazine - September/October 2022 - 48
IEEE Consumer Electronics Magazine - September/October 2022 - 49
IEEE Consumer Electronics Magazine - September/October 2022 - 50
IEEE Consumer Electronics Magazine - September/October 2022 - 51
IEEE Consumer Electronics Magazine - September/October 2022 - 52
IEEE Consumer Electronics Magazine - September/October 2022 - 53
IEEE Consumer Electronics Magazine - September/October 2022 - 54
IEEE Consumer Electronics Magazine - September/October 2022 - 55
IEEE Consumer Electronics Magazine - September/October 2022 - 56
IEEE Consumer Electronics Magazine - September/October 2022 - 57
IEEE Consumer Electronics Magazine - September/October 2022 - 58
IEEE Consumer Electronics Magazine - September/October 2022 - 59
IEEE Consumer Electronics Magazine - September/October 2022 - 60
IEEE Consumer Electronics Magazine - September/October 2022 - 61
IEEE Consumer Electronics Magazine - September/October 2022 - 62
IEEE Consumer Electronics Magazine - September/October 2022 - 63
IEEE Consumer Electronics Magazine - September/October 2022 - 64
IEEE Consumer Electronics Magazine - September/October 2022 - 65
IEEE Consumer Electronics Magazine - September/October 2022 - 66
IEEE Consumer Electronics Magazine - September/October 2022 - 67
IEEE Consumer Electronics Magazine - September/October 2022 - 68
IEEE Consumer Electronics Magazine - September/October 2022 - 69
IEEE Consumer Electronics Magazine - September/October 2022 - 70
IEEE Consumer Electronics Magazine - September/October 2022 - 71
IEEE Consumer Electronics Magazine - September/October 2022 - 72
IEEE Consumer Electronics Magazine - September/October 2022 - 73
IEEE Consumer Electronics Magazine - September/October 2022 - 74
IEEE Consumer Electronics Magazine - September/October 2022 - 75
IEEE Consumer Electronics Magazine - September/October 2022 - 76
IEEE Consumer Electronics Magazine - September/October 2022 - 77
IEEE Consumer Electronics Magazine - September/October 2022 - 78
IEEE Consumer Electronics Magazine - September/October 2022 - 79
IEEE Consumer Electronics Magazine - September/October 2022 - 80
IEEE Consumer Electronics Magazine - September/October 2022 - 81
IEEE Consumer Electronics Magazine - September/October 2022 - 82
IEEE Consumer Electronics Magazine - September/October 2022 - 83
IEEE Consumer Electronics Magazine - September/October 2022 - 84
IEEE Consumer Electronics Magazine - September/October 2022 - 85
IEEE Consumer Electronics Magazine - September/October 2022 - 86
IEEE Consumer Electronics Magazine - September/October 2022 - 87
IEEE Consumer Electronics Magazine - September/October 2022 - 88
IEEE Consumer Electronics Magazine - September/October 2022 - 89
IEEE Consumer Electronics Magazine - September/October 2022 - 90
IEEE Consumer Electronics Magazine - September/October 2022 - 91
IEEE Consumer Electronics Magazine - September/October 2022 - 92
IEEE Consumer Electronics Magazine - September/October 2022 - 93
IEEE Consumer Electronics Magazine - September/October 2022 - 94
IEEE Consumer Electronics Magazine - September/October 2022 - 95
IEEE Consumer Electronics Magazine - September/October 2022 - 96
IEEE Consumer Electronics Magazine - September/October 2022 - 97
IEEE Consumer Electronics Magazine - September/October 2022 - 98
IEEE Consumer Electronics Magazine - September/October 2022 - 99
IEEE Consumer Electronics Magazine - September/October 2022 - 100
IEEE Consumer Electronics Magazine - September/October 2022 - 101
IEEE Consumer Electronics Magazine - September/October 2022 - 102
IEEE Consumer Electronics Magazine - September/October 2022 - 103
IEEE Consumer Electronics Magazine - September/October 2022 - 104
IEEE Consumer Electronics Magazine - September/October 2022 - 105
IEEE Consumer Electronics Magazine - September/October 2022 - 106
IEEE Consumer Electronics Magazine - September/October 2022 - 107
IEEE Consumer Electronics Magazine - September/October 2022 - 108
IEEE Consumer Electronics Magazine - September/October 2022 - Cover3
IEEE Consumer Electronics Magazine - September/October 2022 - Cover4
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20240102
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20231112
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230708
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230506
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230304
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230102
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20221112
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220708
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220506
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220304
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220102
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20211112
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210708
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210506
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210304
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202010
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202009
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202007
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202004
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202003
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202001
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201909
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201907
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201905
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201903
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201901
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201811
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201809
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201807
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201805
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201803
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_july2017
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_april2017
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_january2017
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_october2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_july2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_april2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_january2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_october2015
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_july2015
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_april2015
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_january2015
https://www.nxtbookmedia.com