IoT applications. An antenna switch, RF balun, power
amplifier, low-noise receive amplifier, filters, and
power management modules are all integrated into
the ESP32. The ESP32 Module's physical form is as
follows.
Figure 1: ESP32.
2.2 Soil Moisture Sensor
Soil moisture sensor measures the volumetric content
of water inside the soil and gives us the moisture level
as output. The sensor is equipped with both analog
and digital output. The soil moisture sensor consists
of two probes which are used to measure the
volumetric content of water. The two probes allow the
current to pass through the soil and then it gets the
resistance value to measure the moisture value.
When there is more water, the soil will conduct
more electricity which means that there will be less
resistance. Therefore, the moisture level will be
higher. Dry soil conducts electricity poorly, so when
there will be less water, then the soil will conduct less
electricity which means that there will be more
resistance. Therefore, the moisture level will be
lower. The soil moisture sensor has four pins : VCC
(power), A0 (analog output), D0 (digital output),
GND (ground).
Figure 2: Soil Moisture Sensor.
2.3 DS3231 RTC Module
The DS3231 is an integrated temperature-
compensated crystal oscillator (TCXO) and crystal-
based low-cost I2C real-time clock (RTC). When the
gadget's main power supply is interrupted, the device
has a battery input and continues to retain precise
time.
The RTC maintains seconds, minutes, hours, day,
date, month, and year information. The date at the end
of the month is automatically adjusted for months
with fewer than 31 days, including corrections for
leap year. The clock operates in either the 24-hour or
12-hour format with an active-low AM/PM indicator.
Two programmable time-of-day alarms and a
programmable square-wave output are provided.
A precision temperature-compensated voltage
reference and comparator circuit monitor the status of
VCC to detect power failures, to provide a reset
output, and to automatically switch to the backup
supply when necessary.
Figure 3: DS3231 RTC Module.
2.4 Thingsboard
An open-source Internet of Things platform called
ThingsBoard is used for data collecting, processing,
visualization, and device management. It offers a
ready-to-use on-premises or cloud IoT solution to
enable server-side infrastructure for various IoT
applications (Aghenta LO and Iqbal MT, 2019).
ThingsBoard provides 100 percent support for
standard IoT protocols for device connectivity,
including MQTT, CoAP, and HTTP(S), and it
presently supports three different database options:
SQL, NoSQL, and Hybrid databases. The
ThingsBoard platform uses these databases to store
entities (such as devices, assets, dashboards, users,
alarms, customers, etc.), and telemetry data (attributes,
time-series sensor readings, statistics, events, etc.)
(Ismail AA, Hamza HS and Kotb AM,2018).
ThingsBoard has two different editions, the
Community Edition, which is free and wholly open
source, and the Professional Edition, which has more
advanced features. In this research, the Community
Edition is used. This Community Edition is open
source, and is available free-of-charge on both the
ThingsBoard official website and on GitHub software
development platform (Aghenta LO and Iqbal
MT,2019). The architecture of thingsboard is shown
below.