论文信息
论文解读
AI 辅助整理- 方法
- ESP32采集温湿度和土壤水分,经LoRa(SX1278)传输至网关并接入Bly
- 发现
- 实际农田条件下LoRa链路仅约120米即中断,远低于理论公里级。
- 机会点
- 可研究多跳中继、天线高度与扩频参数优化,提升偏远农田LoRa组网覆盖与可靠性。
论文摘要
本文报道了一种农业灌溉系统的新方法。本工作旨在设计和实现一种基于ESP32平台和物联网(Internet of Things, IoT)技术的智能灌溉系统,以优化用水管理。随着物联网技术的快速发展,设备得以互联并可通过互联网进行控制,如今基于实时环境数据设计智能灌溉系统,以在最少人工干预下实现最优用水已成为可能。在撒哈拉地区,由于缺乏通信网络和互联网连接,数据传输需要采用替代通信协议。基于SX1278收发器的LoRa技术可提供远距离、低功耗通信,在理想条件下(视距传输、天线高度较高、低数据速率以及分布式传感器节点与中心网关之间开阔的农村环境),其通信距离可达数公里(农村地区可达10–15 km)。然而,这一理论距离在实际中并不能假定成立。在标准农田部署条件下(地面放置和植被干扰)进行的现场测试表明,链路在约120 m处即发生中断,这验证了系统在田块尺度上的可行性。本项目使用Arduino(版本2.3.7)软件对NodeMCU(ESP32)开发板进行编程,将开发板与Blynk云应用相连接。该项目用于监测温度、湿度和土壤水分,并向灌溉系统发送指令,主从卡采用LoRa技术作为通信工具,以替代WiFi或蜂窝网络等通信系统——这些系统在荒漠或偏远地区可能覆盖不足,或建设成本过高。为应对这一挑战,本文提出了基于ESP32微控制器和LoRa(SX1278)技术的智能灌溉系统的设计与实现,其长期目标是助力传统农业的现代化和环境可持续性。要将覆盖范围扩展至更大田块和撒哈拉地区,需要架高天线、优化LoRa参数(扩频因子和带宽)、采用多跳中继节点或部署多个网关;这些策略被提出作为未来工作。
全文
ElectronicsElectronics 2026, 15, 4831 https://doi.org/10.3390/electronics15204831
Article
IoT-Enabled Smart Irrigation Using ESP32 and LoRa for
Precision Water Management in Connectivity-Limited Regions
Hanfoug Salah 1, Riad Saidi 2, Abdelaziz Aouiche 3 and Yazeed Alkhrijah 4,*
1 Institute of Applied Sciences and Techniques, University of Oum El Bouaghi, Oum El Bouaghi 04000,
Algeria; hanfoug.salah@univ-oeb.dz
2 Electronics Department, LAAAS Laboratory, University Mustapha Ben Boulaid-Batna2,
53 Route de Constantine, Fésdis 05078, Batna, Algeria; r.saidi@univ-batna2.dz
3 Electronics and Telecommunications Departement, LABGET Laboratory—Laboratory of Signals and Smart
Systems, Echahid Cheikh Larbi Tebessi University, Tebessa 12002, Algeria; abdelaziz.aouiche@univ-tebessa.dz
4 Department of Electrical Engineering, College of Engineering, Imam Muhammad ibn Saud Islamic University,
Riyadh 11564, Saudi Arabia
- Correspondence: ymalkhrijah@imamu.edu.sa
Abstract
In this paper, a new method for irrigation systems in agriculture has been reported. This
work aims to design and implement a smart irrigation system based on the ESP32 plat-
form and Internet of Things (IoT) technologies for optimizing water usage managemen t.
With the rapid growth of Internet of Things (IoT) technologies, where devices are con-
nected and can be controlled through the internet, it is now feasible to design smart irri-
gation systems based on real-time environmental data to deliver optimal water use with
minimal human intervention. In Sahara areas, where communication networks and inter-
net connections are lacking, alternative communication protocols are necessary for data
transfer. LoRa technology based on the SX1278 transceiver provides long -range, low -
power communication that can achieve multi -kilometer ranges (up to 10 –15 km in rural
areas) under ideal conditions: line-of-sight, high antenna height, low data rate, and open
rural environments between distributed sensor nodes and a central gateway. However,
this theoretical range cannot be assumed in practice. Field tests under standard farm de-
ployment conditions (gr ound-level placement and vegetation interference) showed that
the link was lost at approximately 120 m, which validates the system at the scale of a field
plot. This project used Arduino (version 2.3.7) software to program the NodeMCU
(ESP32) board to link the board with the Blynk cloud application. The project is used to
monitor the temperature, humidity, and soil moisture and do the command for the irriga-
tion system, with master and slave cards using LoRa technology as a communication tool
to replace communication systems like WiFi or cellular networks in deserted or remote
areas, which might not offer sufficient coverage or could be too expensive to build. To
address this challenge, this paper presents the design and implementation of a smart irri-
gation system based on the ESP32 microcontroller and LoRa (SX1278) technology, with the
long-term objective of helping in the modernization of traditional agriculture and environ-
mental sustainability. Extending the coverage to larger fields and Sahara areas would require
elevated antennas, optimized LoRa parameters (spreading factor and bandwidth), multi-hop
relay nodes, or multiple gateways; these strategies are proposed as future work.
Keywords: agriculture; Blynk; esp32; irrigation system; internet of things; LoRa (SX1278);
sensors; water management
Academic Editor: Quan Nguyen
Received: 29 August 2026
Revised: 10 October 2026
Accepted: 14 October 2026
Published: 19 October 2026
Copyright: © 2026 by the authors.
Licensee MDPI, Basel, Switzerland.
This article is an open access article
distributed under the terms and
conditions of the Creative Commons
Attribution (CC BY) license.
Electronics 2026, 15, 4831 2 of 17
https://doi.org/10.3390/electronics15204831
- Introduction
Conventional irrigation systems face several critical limitations in modern farming,
particularly in desert areas where traditional internet infrastructure is absent. Approxi-
mately 70% of global freshwater consumption is attributed to agriculture; conventional
irrigation methods often result in significant water wastage through over-irrigation, evap-
oration, and poor timing. As climate change intensifies water scarcity and populations
grow, the need for an efficient and intelligent irrigation system with new communication
techniques is essential. Agriculture is facing unprecedented challenges as growing popu-
lations force it to use water more efficiently while keeping food supplies secure. Today,
precision agriculture offers a much wider range of smart systems [1–6]. Thanks to the de-
velopment of Internet of Things (IoT) technologies [7–10], which have revolutionized the
field, farmers can now monitor soil conditions, weather, and crop health in real time.
However, most IoT solutions depend heavily on WiFi , cellular networks, or broadband
internet connectivity resources that are often unavailable or prohibitively expensive in
remote agricultural regions, particularly in developing countries and isolated rural com-
munities. Connectivity provided by LoRa (Long Range) technology [11] presents a good
solution in rural areas where traditional internet infrastructure is absent or unreliable.
LoRa can transmit data over distances of 2–15 km theoretically; this technology creates an
accessible platform for building smart irrigation IoT systems without traditional network
infrastructure. Traditional irrigation methods have a number of serious drawbacks that
affect environmental sustainability and agricultural productivity. Usually, these systems
follow preset timetables without taking into account current weather patterns, crop needs,
or soil conditions. Water waste, nutrient leaching, soil degradation, and less than ideal
crop growth are the results of this method, which causes overwatering in some places and
underwatering in others. Furthermore, it can be difficult to establish centralized monitor-
ing and control systems in large agricultural fields since they often lack sufficient connec-
tion infrastructure. For large -scale rural deployments, traditional wireless sensor net-
works used in many applications for collecting data about physical phenomena , such as
WiFi or cellular networks [1 2], might not offer enough coverage or might be too costly.
The IoT-based irrigation system utilizing LoRa technology tackles these difficulties by es-
tablishing an extensive network of interconnected sensors and actuators that provide pre-
cise water management across vast agricultural regions. This system leverages LoRa ’s
long-range, low-power wireless communication capabilities to establish reliable connec-
tivity between distributed field sensors and central control systems.
The solution integrates multiple sensor types , including soil moisture sensors, tem-
perature and humidity monitors, and light sensors, to collect real -time environmental
data. This information is transmitted via LoRa to centralized gateways and processing
systems that analyze the data and automatically adjust irrigation parameters to optimize
water delivery. The integration of LoRa technology with IoT-based irrigation systems rep-
resents a significant advancement in precision agriculture for several reasons. LoRa’s abil-
ity to transmit data over distances of up to 15 km in rural environments makes it ideal for
large-scale farming operations where traditional wireless technologies fall short. The tech-
nology’s extremely low power consumption enables sensor nodes to operate for years on
a single battery charge, reducing maintenance requirements and operational costs.
In this paper, the design and development of an irrigation system that utilizes the
ESP32 microcontroller and the LoRa (SX1278) communication protocol have been dis-
cussed. This designed system consists of a master-slave architecture whereby the distrib-
uted slave nodes measure moisture content, temperature, and humidity of soil in real time
and send the data through LoRa communication to the master node. The master node takes
care of processing collected data and operates the actuators responsible for irrigation control.
The main contributions of this paper include the following:
Electronics 2026, 15, 4831 3 of 17
https://doi.org/10.3390/electronics15204831
Designing an economical and energy -saving smart irrigation system using ESP32
and LoRa for farmland.
Designing a master-slave LoRa communication system to address the shortcomings
of Wi-Fi and cellular network systems in desert and rural areas.
Monitoring soil moisture, temperature, and humidity , along with automatic irriga-
tion of plants.
Connection with the mobile application (Blynk) on the cloud server.
This paper is organized into several sections to provide a comprehensive understanding
of the smart irrigation system [13,14] development and implementation. After the introduc-
tion in Section 2, it presents a review of the related literature on the physical architecture of the
smart irrigation system, LoRa communication technology applications in agriculture, and
hardware components. Section 3 describes the system overview and design methodology, in-
cluding making automatic irrigation decisions while users have a manual control interface in
different network conditions, whether via Wi-Fi or LoRa. Section 4 describes the system archi-
tecture and design methodology, detailing the hardware components including ESP32 micro-
controllers and LoRa modules, sensor integration, and the overall network topology. Section
5 presents the experimental setup and testing procedures used to validate system performance
in real-world conditions. We followed a systematic approach, starting with a comprehensive
theoretical study of the major technologies involved: IoT systems, wireless communication
protocols, and embedded platforms. This was followed by the selection of the design, hard-
ware, and software building blocks; system implementation and integration; and finally, a set
of tests to validate the system’s performance, precision, communication range, and power con-
sumption. Section 6 presents the experimental results. Finally, Section 7 concludes the paper
by discussing practical implications for agricultural applications in desert areas and suggest-
ing directions for future research and system enhancements.
2. Literature Review
The physical architecture of the smart irrigation system represents the foundation
that assures seamless integration between electronic components and software -based
functions. The hardware components were selected and constructed with excellent preci-
sion to ensure optimal performance, low power consumption, and intelligent interaction
with environmental conditions. This section includes the following parts list of hardware
components, Device Definition and Wiring Method, mechanical considerations (including
assembly and layout), electrical power and protection, the general wiring diagram, and
finally the professional logical design. For the selection and integration of hardware com-
ponents, the literature demonstrates a methodical approach to hardware selection that
takes into consideration a number of microcontroller selection variables . Most solutions
use microcontrollers that can interact with both sensors and LoRa transceivers, such as
ESP32 modules or Arduino -based systems. The decision is based on power limitations
and processing requirements.
The fundamental problem addressed by this work can be outlined as follows: how
do we develop a smart, autonomous, and energy-efficient irrigation system that operates
smoothly without relying on standard power or internet connectivity yet enable s real-
time remote monitoring and control? To answer this question, the project set various ob-
jectives: creating a hardware framework with robust capabilities based on the ESP32 mi-
crocontroller, sensors for soil moisture, temperature, and light intensity, and a LoRa trans-
ceiver for wireless communication between distant nodes and the core units. Another main
objective is to design a simple-to-use monitoring interface through the Blynk application for
real-time visualization and control of agricultural conditions. Additionally, the system opti-
mizes energy consumption by utilizing low-power parts and optimal circuit placement.
Electronics 2026, 15, 4831 4 of 17
https://doi.org/10.3390/electronics15204831
In order to accomplish this, we followed a systematic approach, starting with a com-
prehensive theoretical study of the major technologies involved : IoT systems, wireless
communication protocols, and embedded platforms. This was followed by design and
hardware and software building-block selection, system implementation and integration,
and finally a set of tests to validate performance, precision, communication range, and
power consumption.
3. System Overview
The system automatically determines the optimal irrigation schedule based on sensor
data, while still allowing users to take full manual control at any time through a
smartphone application. Data is transmitted via LoRa between the nodes and the gateway,
and via Wi-Fi between the gateway and the cloud, ensuring stable communication regard-
less of network conditions. As shown in Figure 1, the smart irrigation system details the
methods used to meet the project’s objectives through a structured analysis of require-
ments and the integration of hardware and software components. The system design pri-
oritizes reliability and efficiency by utilizing the ESP32 microcontroller, vario us environ-
mental sensors, and the Blynk platform for remote monitoring. LoRa technology is em-
ployed to ensure long-range, low-power communication between master and slave nodes.
All design choices were guided by the need for scalability, and the DHT22 humidity and
temperature sensor measures the humidity and temperature of the air, adaptable to real-
world agricultural environments.
Figure 1. Overview of the IOT-enabled smart irrigation system.
The system opens the solenoid valve of the pump to water the plants using a relay.
The ESP32 uses LoRa technology with the mobile application or web dashboard via the
Blynk cloud. We used the Blynk app to collect irrigation data, manually control the valve,
and plot the soil temperature fluctuation graph.
Arduino IDE (Version 2.3.7) was chosen as the working platform for developing the
ESP32-WROOM-32D microcontroller. This is one of the best settings for programming the
ESP32 platform due to its high flexibility, ease of use, open-source tools, and the wide help
available from the creator and the programmer. In order to set up the Arduino IDE for ESP32,
you need to load certain libraries and tools. These ensure that the ESP32 unit is fully integrated
with the development environment, which makes writing faster and easier.
Using an ESP32, the Internet of Things, and LoRa, the flowchart intends to illustrate
the primary process involved in the smart irrigation system. The system is made up of a
number of different components and devices that are all connected to one another. These
components and devices are used to monitor and measure factors such as soil moisture
and temperature, as well as to manage irrigation automatically. As showing in Figure 2
Electronics 2026, 15, 4831 5 of 17
https://doi.org/10.3390/electronics15204831
this flowchart displays the main process the smart irrigation system in the master unit,
where the system initialization LoRa module and sensor data collection (soil moisture,
temperature, and humidity), the data processing to make the decision by reading the data,
LoRa receives data from the slave, and transmits it to the master card, and makes decisions
and sending the data to the cloud (Blynk application) for irrigation control (valve open/close).
Figure 2. The flowchart of the master system.
In the slave circuit, we connected the ESP32 to a solenoid valve, a water flow sensor,
a temperature sensor, an air humidity sensor, and a moisture sensor. The ESP32 uses the
information from these sensors to decide when to open the solenoid valve using a LoRa
module. The system is designed for fully autonomous operation using only LoRa com-
munication between Master and Slave nodes. Wi-Fi and Blynk connectivity shown in Fig-
ure 2 are optional and used solely for remote monitoring when an internet connection is
available. All irrigation control decisions are executed locally by the Slave node and con-
tinue to function even if the internet or the Master node becomes unavailable.
Figure 3 shows the flowchart that shows the logic written into the ESP32.
Electronics 2026, 15, 4831 6 of 17
https://doi.org/10.3390/electronics15204831
Figure 3. Flowchart of the slave system.
The system is powered by a 12 V battery regulated to 5 V for the microcontroller and
sensors, while the water pump is supplied directly at 12 V through a relay. Approximate
current consumption for the main operating modes is summarized in Table 1 below.
Table 1. The operating mode parameters.
Operating Mode Approximate Current Duration/Notes
Standby/Sleep 20–40 µA MCU + SX1278 in sleep mode
Sensor sampling 8–15 mA Short duration (a few hundred ms)
LoRa transmission 90–120 mA SX1278 at +17 dBm
LoRa reception 10–15 mA Continuous listening
Pump activated (relay ON) Pump current + 5–10 mA Depends on the specific pump
4. Materials and Methods
4.1. ESP-WROOM-32 Microcontroller Unit
Espressif Systems designed the ESP-WROOM-32, an efficient microcontroller chip. It
is certainly the most well-known microprocessor module used in IoT (Internet of Things)
applications because it performs effectively, connects wirelessly, and uses relatively little
power. The module has a Tensilica Xtensa LX6 dual -core CPU and built -in support for
both Wi-Fi and Bluetooth. It is therefore a wonderful choice for applications that require
a large amount of processing power and a wireless link in a compact, low-cost container.
Electronics 2026, 15, 4831 7 of 17
https://doi.org/10.3390/electronics15204831
The ESP-WROOM-32, as shown in Figure 4, is designed for embedded systems and
Internet of Things (IoT) apps. It has many interfaces and peripherals, including PART, SPI,
I2C, PWM, ADC, and DAC, giving sensors and actuators a lot of different ways to send and
receive data. It also has a low-power consumption mode, which makes it good for devices that
run on batteries. The microcontroller can also run real-time operating systems (RTOS) like
FreeRTOS, which lets it do more than one thing at once for complicated applications.
Figure 4. ESP32 card Microcontroller Unit.
4.2. LoRa SX1278 Module
The LoRa SX1278 is a wireless transceiver module designed for long-range operation
in the 433 MHz band and consumes very little power [1 5]. The use of LoRa modulation
enables long communication distances with low bandwidth and energy consumption,
making it ideal for IoT and sensor networks.
Transmission range requirements, data rate needs, and regional frequency regula-
tions are the basis for selecting appropriate LoRa modules. The LoRa SX1278 is a module
that provides long -range wireless communication for low -power purposes in the 433
MHz ban d. Using LoRa modulation technology, communication distances can be ex-
tended, and bandwidth can be low, making it perfect for IoT and sensor networks , as il-
lustrated in Figure 5.
Figure 5. LoRa SX1278 Module.
4.3. The Capacitive Soil Moisture Sensor
This sensor uses two copper traces implanted on a PCB to measure changes in the
soil’s dielectric permittivity, which act as capacitor plates. The water content between
these plates serves as the dielectric material, and because water has a higher dielectric
property than dry soil or air, a rise in humidity increases the sensor’s capacitance [16–18].
Electronics 2026, 15, 4831 8 of 17
https://doi.org/10.3390/electronics15204831
The fluctuation in capacitance is transformed into a quantifiable analog voltage through
an integrated oscillator circuit, where moister soil yields a lower voltage and drier soil
results in a greater voltage. The microcontroller’s ADC reads the output for real-time soil
moisture monitoring. The sensor prevents corrosion and delivers constant readings owing
to the absence of direct electrical contact with the soil. The capacitive soil moisture Sensor
v2.0 used with an ESP32 microcontroller is shown in Figure 6.
Figure 6. The Capacitive Soil Moisture Sensor.
4.4. DHT22 Temperature and Humidity Sensor
The DHT22, shown in Figure 7 and known as the AM2302, offers a digital output,
facilitating its integration with various systems and microcontrollers [19], and is a digital
temperature and humidity sensor widely utilized in IoT and environmental monitoring
applications. It offers high levels of accuracy, stability, and long -term reliability, making
it an excellent choice for smart agricultural systems.
The DHT22 features a plastic container that incorporates a capacitive humidity sen-
sor and a thermistor for measuring temperature. The sensor has four pins; however, only
three are normally used: VCC, data, and GND.
The sensor provides data via a single -wire digital interface, enabling efficient inter-
action with microcontrollers like the ESP32. It delivers a 40-bit data stream containing 16
bits for humidity, 16 bits for temperature, and 8 bits for the checksum. This sensor offers
improved accuracy and a larger measurement range.
Figure 7. DHT22 Sensor.
Electronics 2026, 15, 4831 9 of 17
https://doi.org/10.3390/electronics15204831
4.5. Light Dependent Resistor (LDR)
A Light Dependent Resistor (LDR), Figure 8, or photoresistor, is a passive electrical com-
ponent whose resistance varies depending on the quantity of light falling on its surface. Re-
sistance decreases as the intensity of the light increases, and vice versa. The LDR’s simple yet
strong behavior makes it excellent for sensing ambient light conditions in a wide range of ap-
plications, including intelligent lighting, smart irrigation, and environmental monitoring sys-
tems. The sensor serves as a tool to detect and measure the magnitude. LDR with an Arduino
UNO is used to measure light intensity by converting resistance to Lux [20,21].
The LDR is constructed from a semiconductor material , such as cadmium sulfide
(CdS), arranged in a zigzag pattern on an insulating substrate. When photons contact the
material, they activate electrons, decreasing its resistance.
Physically, the LDR is a compact and lightweight component with two terminals.
Digitally, it acts as a variable resistor, and in microcontroller systems like the ESP32, as
shown in Figure 8, it is generally utilized in a voltage divider arrangement to create analog
voltage values depending on light intensity.
Figure 8. Light Dependent Resistor (LDR).
4.6. The Water Pump
The 5 V water pump shown in Figure 9 is a small, efficient DC motor-driven device
frequently utilized in small-scale irrigation and liquid transfer applications [22,23]. It op-
erates by resulting in a pressure difference to move water through an inlet and exit, mak-
ing it suitable for automation projects. This pump is particularly valuable in embedded
systems for its low voltage needs and straightforward operation.
Figure 9. The 5 V water pump.
4.7. Relay Module
A relay, as shown in Figure 10, is an electromechanical switch that enables a low -
power control signal to manage a high-power electrical load, such as a pump or motor. It
consists of a coil that, when energized, generates a magnetic field that closes or opens a
mechanical contact. In em bedded systems, relay modules are widely used to interface
Electronics 2026, 15, 4831 10 of 17
https://doi.org/10.3390/electronics15204831
microcontrollers (like the ESP32) with devices operating at higher voltages or currents
than the controller can directly handle. Relays act as switch to control pumps, when the
controller receives input from the sensors, it activates or deactivates the relays accordingly
in our project, we use a 5 V single-channel relay module with an onboard optocoupler to
isolate the control circuit from the load circuit, enhancing safety and signal integrity.
Figure 10. Relay Module.
5. Experiments and Discussion
The main objective of this simulation is to verify the logical behavior of the smart
irrigation system in a virtual environment before deploying it on real hardware. Since
Proteus does not support the ESP32 microcontroller or the LoRa SX1278 module, equiva-
lent substitutes were used: an Arduino Uno microcontroller in place of the ESP32, and an
HC-05 Bluetooth module instead of the LoRa module, as shown in Figure 11. This emula-
tion allows core functionalities , such as sensor data acquisition, decision -making logic,
and actuator control (e.g., the water pump) , to be tested in a controlled and observable
environment. By simulating the system using virtual components and serial communica-
tion, it becomes possible to observe how the system reacts to changing values of soil mois-
ture and light intensity, while also testing the manual and automatic modes of pump control.
The simulation environment thus serves as an essential step in debugging and validating both
software and hardware logic before transitioning to the physical deployment phase.
The software design for the ‘Smart Irrigation System utilizing ESP32, IoT, and LoRa’
project has a significant impact on its seamless integration and responsiveness. The ESP32
microcontroller was chosen as the central processing unit in charge of gathering environ-
mental data (soil moisture, temperature, and light intensity), evaluating it, and perform-
ing automated actions based on predetermined logic.
We used the Arduino IDE as the development platform due to its ease of use and
suitability with a large range of open -source libraries that enable wireless connectivity,
sensor integration, and remote control via user interfaces.
The basic objective of this design is to permit the system to make automatic irrigation
choices while providing users with a manual control interface via their cellphones and assur-
ing reliable communication in various network circumstances, whether via Wi-Fi or LoRa.
As shown in Figure 12, the Blynk platform plays an important role in enabling real -
time communication between the Master ESP32 and the user using cell phones. The Blynk
library is used by the master device to read sensor readings such as temperature, humidity
(DHT22), light intensity (LDR), and soil moisture, which are then wirelessly transmitted
to the Blynk cloud. Via Wi -Fi. Blynk provides an excellent platform for creating smart
Electronics 2026, 15, 4831 11 of 17
https://doi.org/10.3390/electronics15204831
irrigation systems because it offers easy mobile app integration, cloud connectivity, and
real-time monitoring capabilities. Here are the key aspects.
Figure 11. Circuit Schematic in the Simulation Environment.
Figure 12. Blynk IoT dashboard for the irrigation system.
The sensor values are shown in Figure 13, connected to temperature, humidity, soil
moisture, and light sensors and the water pump.
As shown in Figures 14 and 15, the system typically consists of multiple sensor nodes
distributed across irrigation zones, each equipped with soil sensors and valve controls.
These nodes communicate wirelessly via LoRa to a central gateway that coordinates irri-
gation decisions based on aggregated sensor data. The global system (master slave) can
operate autonomously or sync with cloud services when connectivity becomes available.
Electronics 2026, 15, 4831 12 of 17
https://doi.org/10.3390/electronics15204831
Figure 13. Testing Communication Between Modules.
Figure 14. Smart practice irrigation system.
(a) (b)
Figure 15. (a) Transmitter (Master), (b) Receiver (Slave).
This hardware configuration enables reliable, energy -efficient irrigation manage-
ment in agricultural settings without dependence on continuous internet connectivity.
The Blynk platform was configured and linked to the system, enabling real-time monitor-
ing and control. The system demonstrated good performance within a specific range, ful-
filling its intended tasks efficiently. Furthermore, the irrigation process can now be triggered
either automatically based on sensor readings or manually through the mobile application,
offering flexibility and adaptability according to user needs and environmental conditions.
6. Test Location and Comparison of Results
During testing, various environmental sensor readings were collected to verify the
accuracy and responsiveness of the system. The moisture Sensor Readings varied from
20% (dry soil) to 85% (wet soil) depending on soil conditions. The irrigation pump was
Electronics 2026, 15, 4831 13 of 17
https://doi.org/10.3390/electronics15204831
successfully triggered when the moisture dropped below the threshold. The DHT22 tem-
perature and humidity sensor readings showed the temperature in the range of 22 °C to
35 °C, with consistent stability. Relative humidity varied between 35% and 80%, reflecting
environmental changes accurately. The LDR Light Sensor raw analog value was calibrated
and converted to light-intensity percentage for clarity. Light levels ranged from 5% (low
light conditions) to 98% (direct sunlight), enabling light-dependent control if needed.
The test cases shown above provide a temporary demonstration of the prototype. It
proves that the system works properly with the sensor, pump controller by threshold and
wireless communication of the data. Nonetheless, the experiments carried out have not in-
cluded any comparative testing of fixed-schedule or threshold irrigation methods, and there
was no measure of water consumption, number of irrigations, or the uncertainty of the meas-
urements made.
The tests were conducted in an open area to minimize obstacles and interference.
This location was chosen to simulate realistic environmental conditions and to evaluate
the maximum communication range of the LoRa modules. The relatively clear line -of-
sight allowed a more accurate assessment of signal degradation over distance.
By comparing the systems in Table 2, it becomes evident that most of the irrigation
systems using the ESP32-LoRa have either used Wi-Fi/cellular connectivity at the gateway
level or were developed for small coverage areas (less than 4 km). On the contrary, the
proposed solution has specific ally addressed the issue of remote and connectivity -con-
strained agriculture by us ing the LoRa master -slave (SX1278) approach coupled with
Blynk cloud-based monitoring.
Table 2. LoRa Communication Range.
Distance (m) RSSI (dBm) Status
0 −32 Excellent Signal
10 −72 Strong Signal
20 −75 Strong Signal
30 −78 Good Signal
40 −91 Moderate Signal
50 −97 Moderate Signal
60 −102 Weak Signal
70 −100 Weak Signal
80 −105 Unstable Signal
90 −110 Unstable Signal
100 −113 Marginal Signal
120 −115 No Reception
As the comparative analysis above demonstrates of the Table 3, this work addresses
key limitations in recent literature related to connectivity and cost.
Electronics 2026, 15, 4831 14 of 17
https://doi.org/10.3390/electronics15204831
Table 3. Comparative analysis of related works on ESP32 and LoRA-based smart irrigation systems.
Work/Reference Microcontroller Communication Sensors Monitored Cloud/App Empirical/Tested Range Main Strengths vs. Your Work Limitations Relative to Your Work
This Work ESP32 (NodeMCU) LoRa SX1278 (master-slave) Temp, humidity, soil moisture Blynk ~120 m Low-cost LoRa-based prototype with simple master-slave de-sign; short-range validation Less advanced decision al-gorithms (no ET, ML, or edge AI reported)
[24]
Arduino Nano
(+Raspberry Pi 4B
gateway)
LoRa RYLR896 (SX1276), 915
MHz, node-gateway
Soil water content
(TDR 310H)
None (local CSV log-
ging on Raspberry Pi
4B)
~100 m reliable
(SF12, orchard); no
data at 120 m
Systematic field evaluation of
range vs. vegetation (PDR,
RSSI, SNR; SF8/10/12); low-cost
node
Link-layer study only: no
cloud dashboard or irriga-
tion decision logic; single
site and day; different
MCU (not ESP32)
[25] ESP32 Wi-Fi (no LoRa) Soil moisture, temp, humidity, flow Blynk Wi-Fi limited Similar Blynk + ESP32 + sen-sors; drip focus No LoRa → unsuitable for connectivity-limited re-gions
[26] ESP32 + LoRa SX1278 LoRa Soil moisture, pH, water level Blynk ~100–320 m Very similar hardware + Blynk; includes pH Much shorter practical range; crop-specific
[27] ESP32 TTGO + SX1278 LoRa Temp, soil moisture, flow + weather fore-cast ThingSpeak Not specified (ru-ral focus) More advanced water-need cal-culation (ET-based) Requires public weather data; more complex
[28] Heltec ESP32-LoRa LoRa + Sigfox Soil moisture Cloud (Sigfox) Farm-scale Proven large-area deployment Uses commercial Sigfox (ongoing cost)
[29] STM32 + LoRa LoRa + 4G Soil moisture + mete-orology + GPS Edge computing ~4 km Strong edge intelligence + field trials Different MCU; more com-plex hardware
Electronics 2026, 15, 4831 15 of 17
https://doi.org/10.3390/electronics15204831
Unlike conventional IoT irrigation systems that depend on constant Wi -Fi availabil-
ity [25] or commercial subscription-based services such as Sigfox [28], the proposed design
relies on a LoRa SX1278 master–slave architecture combined with the Blynk platform, en-
abling remote monitoring without recurring costs. Compared with other LoRa-based sys-
tems [24,26,27], this solution offers a simple, low -cost, and easily replicable prototype,
validated over a range of approximately 120 m. While more advanced approaches incor-
porate ET-based water-need estimation [27] or edge computing [29], the proposed system fo-
cuses on reliable sensing and threshold-based irrigation control, providing a solid foundation
for future extensions such as extended range and intelligent decision-making algorithms.
7. Conclusions
The smart irrigation system was successfully implemented using ESP32 microcon-
trollers integrated with LoRa technology for wireless communication in remote agricul-
tural areas. The system was installed on a test field of a few hectares, using LoRa modules
operating at 433 MHz. Under standard field conditions (ground -level nodes, vegetation
interference), communication was reliable up to about 120 m per link, without any Wi-Fi
or cellular infrastructure. RSSI values ranged from −85 dBm to −110 dBm across the dif-
ferent deployment locations.
The implementation of an IoT -based irrigation system using ESP32 and LoRa tech-
nology contributes to precision agriculture and water management. This system combines
the low cost and computing power of the ESP32 with the low -power communication of
LoRa, providing automatic irrigation and manual smartphone control without Wi -Fi or
cellular coverage. The system is designed to operate in remote locations where traditional
cellular or Wi-Fi connectivity is limited or unavailable.
This IoT irrigation system using ESP32 and LoRa technology shows how embedded
systems and low-power wireless communication can support more efficient irrigation, of-
fering a practical and environmentally responsible solution at the scale tested.
Ultimately, this project serves as a valuable practical example of applying modern
communication and IoT technologies to optimize agricultural irrigation systems, aligning
with sustainable development goals and natural resource preservation. The accomplish-
ments documented in this work lay a solid foundation for future research and industrial
applications in the field of smart agriculture.
Covering larger areas would require multi-hop relaying, additional gateways, and ele-
vated antennas, which we plan to test in future work. In the longer term, we hope this work
will contribute to modernizing traditional agriculture and to protecting the environment.
Author Contributions: Conceptualization, H.S. and Y.A.; methodology, R.S. and A.A.; formal anal-
ysis, H.S.; writing—original draft preparation, H.S . and R.S.; writing—review, Y.A.; visualization,
A.A.; supervision, A.A. and R.S. Funding acquisition, Y.A. All authors have read and agreed to the
published version of the manuscript.
Funding: This work was supported and funded by the Deanship of Scientific Research at Imam
Mohammad Ibn Saud Islamic University (IMSIU) (grant number IMSIU-DDRSP2504).
Data Availability Statement: For all data supporting the presented results, or for any further in-
quiries, please contact the corresponding author.
Conflicts of Interest: The authors declare no conflicts of interest.
Electronics 2026, 15, 4831 16 of 17
https://doi.org/10.3390/electronics15204831
References
- Fraga-Lamas, P.; Celaya-Echarri, M.; Azpilicueta, L.; Lopez-Iturri, P.; Falcone, F.; Fernández-Caramés, T.M. Design and Empir-
ical Validation of a LoRaWAN IoT Smart Irrigation System. Proceedings 2020, 42, 62. https://doi.org/10.3390/ecsa-6-06540. - Rijab, K.S.; Sadiq, S.M. Implementing a reconfigurable Internet of Things Nodes using non-IP network based on Wireless Sensor
Network. Diyala J. Eng. Sci. 2019, 12, 60–66. https://doi.org/10.24237/djes.2019.12406. - Zhang, F.; Zhang, W.; Luo, X.; Zhang, Z.; Lu, Y.; Wang, B. Developing an IoT -Enabled Cloud Management Platform for Agri-
cultural Machinery Equipped with Automatic Navigation Systems. Agriculture 2022, 12, 310. https://doi.org/10.3390/agricul-
ture12020310. - Codeluppi, G.; Cilfone, A.; Davoli, L.; Ferrari, G. LoRaFarM: A LoRaWAN -Based Smart Farming Modular IoT Architecture.
Sensors 2020, 20, 2028. https://doi.org/10.3390/s20072028. - Jawad, H.M.; Nordin, R.; Gharghan, S.K.; Jawad, A.M.; Ismail, M. Energy -Efficient Wireless Sensor Networks for Precision
Agriculture: A Review. Sensors 2017, 17, 1781. https://doi.org/10.3390/s17081781. - Saleh, N.L.; Sali, A.; Terng, L.J. Peatland forest monitoring and management solution in peninsular Malaysia: Optimal param-
eters for LoRa data. Ain Shams Eng. J. 2025, 16, 103374. https://doi.org/10.1016/j.asej.2025.103374. - Ray Chowdhury, A.; Pramanik, A.; Roy, G.C. IoT and LoRa based smart underground coal mine monitoring system. Microsyst.
Technol. 2023, 29, 919–938. https://doi.org/10.1007/s00542-023-05484-z. - Nugraha, I.G.D.; Wijaya, G.T.; Ramli, K. Improving meat expiration time prediction using the internet of things and polynomial
regression. ASEAN Eng. J. 2022, 12, 197–205. https://doi.org/10.11113/aej.v12.17340. - Mukhamejanova, A.; Chezhimbayeva, K.; Kaliyeva, S.; Lechshinskaya, E.; Tumanbayeva, K.; Garmashova, Y.; Abisheva, T.;
Zhumay, I. Exponential smoothing-based forecasting of self-similar internet of things traffic. Bull. Electr. Eng. Inform. 2026, 15,
1689–1702. https://doi.org/10.11591/eei.v15i2.11219. - Zhao, Y.L.; Tang, J.; Huang, H.P.; Wang, Z.; Chen, T.-L.; Chiang, C.-W.; Chiang, P.-C. Development of IoT Technologies for Air
Pollution Prevention and Improvement. Aerosol Air Qual. Res. 2020, 20, 2874–2888. https://doi.org/10.4209/aaqr.2020.05.0255. - Sali, A.; Mohd Ali, A.; Mohd Ali, B.; Syed Ahmad Abdul Rahman, S.M.; Liew, J.T.; Saleh, N.L.; Nuruddin, A.A.; Mohd Razali,
S.; Ramli, N.; Mohamad, H.; et al. Radio Frequency LoRa Measurement Campaign at Different Land Use Area in Peat Swamp
Forest of Peninsular Malaysia. IEEE Access 2021, 9, 162835–162847. - Wang, L.; Xu, L.D.; Bi, Z.; Xu, Y. Data cleaning for RFID and WSN integration. IEEE Trans. Ind. Inform. 2014, 10, 408 –418.
https://doi.org/10.1109/TII.2013.2250510. - Zhao, B.; Zheng, D.; Yang, C.; Wang, S.; Mansurova, M.; Jomartova, S.; Kunicina, N.; Zabasta, A.; Beliaev, V.; Caiko, J.; et al. Design
and Optimization of an Internet of Things-Based Cloud Platform for Autonomous Agricultural Machinery Using Narrowband Inter-
net of Things and 5G Dual-Channel Communication. Electronics 2025, 14, 1672. https://doi.org/10.3390/electronics14081672. - Bouras, C.; Gkamas, A.; Kokkinos, V.; Papachristos, N. Using LoRa Technology for IoT Monitoring Systems. In Proceedings of
the 2019 10th International Conference on Networks of the Future (NoF), Rome, Italy, 1–3 October 2019. - Sivakumar, S.; Tripathi, S. Real time object detection for advanced driver assistance systems using deep learning techniques.
Int. J. Electr. Comput. Eng. 2025, 15, 4942–4953. https://doi.org/10.11591/ijece.v15i5.pp4942-4953. - Chen, D.; Chen, N.; Zhang, X.; Ma, H.; Chen, Z. Next-Generation Soil Moisture Sensor Web: High-Density In Situ Observation
Over NB-IoT. IEEE Internet Things J. 2021, 8, 13367–13383. https://doi.org/10.1109/JIOT.2021.3065077. - Hossain, F.F.; Messenger, R.; Captain, G.L.; Ekin, S.; Jacob, J.D.; Taghvaeian, S.; O’Hara, J.F. Soil Moisture Monitoring Through
UAS-Assisted Internet of Things LoRaWAN Wireless Underground Sensors. IEEE Access 2022, 10, 102107 –102118.
https://doi.org/10.1109/ACCESS.2022.3208109. - Maity, T.; Mondal, A.; Samanta, J.; Saha, P.K.; Majumdar, S.; Srivastava, G. Real-Time Soil Hydration Assessment and Monitor-
ing Model for Smart Agriculture with IoT Integration. IEEE Sens. J. 2025, 25, 42243 –42250.
https://doi.org/10.1109/JSEN.2025.3614098. - Azhari; Nasution, T.I.; Sinaga, S.H.; Sudiati. Design of monitoring system temperature and humidity using DHT22 sensor and
NRF24L01 based on Arduino. J. Phys. Conf. Ser. 2023, 2421, 012018. https://doi.org/10.1088/1742-6596/2421/1/012018. - Setya, W.; Ramadhana, A.; Putri, H.R.; Santoso, A.; Malik, A.; Chusni, M.M. Design and development of measurement of meas-
uring light resistance using Light Dependent Resistance (LDR) sensors. J. Phys. Conf. Ser. 2019, 1402, 044102.
https://doi.org/10.1088/1742-6596/1402/4/044102. - Tsauqi, A.K.; Hadijaya, M.; Manuel, I.; Hasan, M.V.; Tsalsabila, A.; Chandra, F.; Yuliana, T.; Tarigan, P. Saklar Otomatis Berbasis
Light Dependent Resistor (LDR) pada mikrokontroler Arduino. In Proceedings of the Seminar Nasional Fisika (SNF2016), Ja-
karta, Indonesia, 28 May 2016.
Electronics 2026, 15, 4831 17 of 17
https://doi.org/10.3390/electronics15204831
22. Hossain, A.T.; Karim, R.; Parvin, S. Design and Implementation of a Low-Cost Light and Moisture-Based Irrigation System using IoT.
In Proceedings of the IEEE International Conference on Green Energy and Technology, Chennai, India, 26–27 November 2021.
23. Rumbayan, M.; Pundoko, I.; Sompie, S.R.U.; Ruindungan, D.G.S. Integration of smart water management and photovoltaic
pumping system to supply domestic water for rural communities. Results Eng. 2025, 25, 103966.
https://doi.org/10.1016/j.rineng.2025.103966.
24. Ahmed, S.; Reza, M.N.; Samsuzzaman; Karim, M.R.; Jin, H.; Kim, H.; Chung, S. -O. Vegetation Effects on LoRa-Based Wireless
Sensor Communication for Remote Monitoring of Automatic Orchard Irrigation Status. IoT 2025, 6, 2.
https://doi.org/10.3390/iot6010002.
25. Pereira, G.P.; Chaari, M.Z.; Daroge , F. IoT -Enabled Smart Drip Irrigation System Using ESP32. IoT 2023, 4, 221 –243.
https://doi.org/10.3390/iot4030012.
26. Anshori, R.F.; Saleh, M.; Aula, A. Smart Farming System Design Based on Long Range and Internet of Things. J. Comput. Sci.
Inform. Eng. 2025, 4, 1128. https://doi.org/10.55537/cosie.v4i2.1128.
27. Froiz-Míguez, I.; Lopez-Iturri, P.; Fraga-Lamas, P.; Celaya-Echarri, M.; Blanco-Novoa, Ó.; Azpilicueta, L.; Falcone, F.; Fernán-
dez-Caramés, T.M. Design, Implementation, and Empirical Validation of an IoT Smart Irrigation System for Fog Computing
Applications Based on LoRa and LoRaWAN Sensor Nodes. Sensors 2020, 20, 6865. https://doi.org/10.3390/s20236865.
28. Fernández-Ahumada, L.M.; Ramírez-Faz, J.; Torres-Romero, M.; López-Luque, R. Proposal for the Design of Monitoring and
Operating Irrigation Networks Based on IoT, Cloud Computing and Free Hardware Technologies. Sensors 2019, 19, 2318.
https://doi.org/10.3390/s19102318.
29. Zhang, Y.; Wang, X.; Jin, L.; Ni, J.; Zhu, Y.; Cao, W.; Jiang, X. Research and Development of an IoT Smart Irrigation System for
Farmland Based on LoRa and Edge Computing. Agronomy 2025, 15, 366. https://doi.org/10.3390/agronomy15020366.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual au-
thor(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any in jury to
people or property resulting from any ideas, methods, instructions or products referred to in the content.
论文原文与出版信息
Electronics