plants. All of these inputs will be processed on the
ESP 32 microcontroller which is commonly referred
to as a server node.
The data that has been processed on the server
node will be sent to the master-slave using the wifi
access point contained in the ESP32 feature. Data
from the node will be sent to the master-slave which
also uses the ESP32 microcontroller. This master-
slave serves as a central control for incoming data
from all server nodes. Both node 1, node 2, node 3,
and node 4 will all be processed on the master-slave.
This master-slave also functions as the central control
of all settings, both the watering process and the
fertilization process. To be able to connect to android,
this master-slave sends data to the web server using
firebase.
Figure 4: Flowchart system.
Based on the data in Figure 3 which describes the
workings of the whole system, this system uses two
pumps, namely for watering and for fertilizing.
Fertilization is done by using liquid fertilizer. When
the sensor reads soil moisture data, the data obtained
will be processed whether the data is by the specified
set points. The set point here is determined with a
range of 1 to 100. When the soil moisture is more than
60% of the maximum range, the watering process will
take place, so the water pump will turn on. The sensor
will always work until when it exceeds the set point
or is below 60% of the data, the watering will stop,
this indicates that the soil is already moist and there
is no need for watering, so the water pump will turn
off. This condition will be the same between node 1
to node 4. For the way the fertilization process works,
it can be set using the Real-Time Clock because the
fertilization process is carried out routinely and
simultaneously so it is only necessary to set the timer
value on the RTC. When the RTC value matches the
input, the fertilization process will take place and the
fertilization pump will turn on so that fertilization is
active. This can be adjusted to the conditions of the
agricultural land used. When the delay in fertilization
time is over, the pump will automatically shut down
and the fertilization process is complete.
3.2 Singlehop Communication
Wireless Sensor Networks (WSN) are a very popular
technology in this decade. WSN is a system where
one node to another can make contact and exchange
data. In addition, WSN is a cheap, fast, and quality
data transmission technology without the cost and
mess of cables. WSN can be used in many fields,
including use in smart homes, tracking systems,
agriculture, the military, the environment, and many
more. One of the most important of these is the
implementation in the environment (A. S. Editya
2017). The wireless sensor network has the following
characteristics:
1. Limited manpower resources. WSN does not
have a continuous power source. WSN power
can be obtained with batteries and adapters,
but it should be noted that WSN has a
maximum limit of 3.3V. 14
2. The ability to survive in an environment that
has conditions that tend to change such as
temperature, rainfall, humidity, light intensity,
and so on.
3. Ability to resolve errors on the node
(decentralized management). This is
necessary because the nodes used by WSN
will be outside the scope of user control, so the
ability to automatically resolve errors is vital.
4. Node mobility, the nodes used in the WSN can
be placed anywhere as long as they are within
the range of the WSN. Nodes are not related to
the position, so they can be moved even when
they are working.
5. Dynamic network topology, WSN does not
have certain limitations or criteria in designing
its topology. The topology can be designed
according to the wishes and goals intended by
the user.
6. Large-scale deployment, WSN can be used for
monitoring a very large area and for various
purposes.
In its development, wireless sensors have been
developed with several network topologies such as: