论文信息

Leqi Lai / Langtao Duan / Yuhao Chen 等 6 人

AgriEngineering

论文解读

AI 辅助整理
方法
通用RS485/Modbus传感器PCB、节点边缘处理、DeepSeek大模型A
发现
传感器精度达标,多节点延迟238ms、丢包低于0.5%,成本降低3-5倍。
机会点
可研究弱信号下通信可靠性提升与边缘-云端LLM协同的长期田间鲁棒性。

论文摘要

本文提出Agri-Synergy,一种采用软硬件协同设计的混合物联网(IoT)系统,旨在解决智慧农业中传感器数据异构性问题以及有效AI驱动决策支持的障碍。与基于软件的数据协调方式不同,我们提出了一种带有RS485/Modbus接口的通用传感器印刷电路板(PCB)以实现硬件统一,并辅以节点端边缘处理,确保从源头获得标准化数据。为降低农民的使用门槛,该系统集成了DeepSeek大语言模型(LLM)API,将静态农业知识与实时传感器数据相结合,提供上下文感知的、基于自然语言的决策支持,且无需本地部署模型即可运行。现场部署表明,经参考验证的传感器精度基本处于制造商规格范围内;在4小时基准测试期间4G连接稳定,但在20天部署期间出现间歇性断连;远程控制成功率分别为96%(正常信号)和80%(300 m处弱信号)。多节点并发传输的平均延迟为238.0 ± 27.1 ms,丢包率低于0.5%。与商业平台相比,该系统实现了3–5倍的成本降低。这些结果表明,通过硬件统一和软件边缘处理从源头解决数据异构性问题,同时利用AI降低系统采用门槛,可为数据同步和可及的AI驱动分析提供更可靠的基础。

全文

AgriEngineering

AgriEngineering 2026, 8, 446 https://doi.org/10.3390/agriengineering8100446
Article
Agri-Synergy: A Hardware–Software Co-Designed Hybrid IoT
System for Sensor Interface Standardization and LLM-Driven
Interactive Decision Support
Leqi Lai 1, Langtao Duan 1, Yuhao Chen 1, Yuhang Zheng 1, Jinyu Yang 1 and Mingyao Wen 1,2,*
1 Zhujiang College, South China Agricultural University, Guangzhou 510900, China;
leqilai0663@163.com (L.L.); 18635937918@163.com (L.D.); 18316549290@163.com (Y.C.);
m19047165022@163.com (Y.Z.); jinyuy118@163.com (J.Y.)
2 Guangdong Engineering Technology Research Center for Artificial Intelligence Empowered Media
Technologies and Applications, Guangzhou 510900, China

  • Correspondence: gzmywen@126.com or wenmingyao@scauzj.edu.cn
    Abstract
    This paper presents Agri -Synergy, a hybrid Internet of Things (IoT) system featuring a
    hardware–software co-design to tackle sensor data heterogeneity and the barriers to ef-
    fective AI-driven decision support in smart agriculture. Unlike software -based data har-
    monization, we propose a universal sensor printed circuit board (PCB) with RS485/Mod-
    bus interface for hardware unification, complemented by on -node edge processing that
    ensures standardized data from source. To lower the entry barrier for farmers, the system
    integrates the DeepSeek large language model (LLM) API, combining static agricultural
    knowledge with real-time sensor data, for context-aware, natural language-based decision
    support, functioning without local model deployment. Field deployment showed refer-
    ence-verified sensor accuracy predominantly within manufacturer specifications, stable
    4G connectivity during the 4 -h benchmark but intermittent dropouts during the 20 -day
    deployment, and remote-control success rates of 96% (normal) and 80% (weak signal at
    300 m). Multi-node concurrent transmission resulted in average latency of 238.0 ± 27.1 ms
    and packet loss below 0.5%. The system achieves a 3–5× cost reduction compared to com-
    mercial platforms. These results demonstrate that addressing data heterogeneity from
    source through hardware unification and software e dge processing, while leveraging AI
    to lower the barrier to system adoption, provides a more reliable foundation for data syn-
    chronization and accessible AI-driven analytics.
    Keywords: smart agriculture; internet of things; data standardization; edge computing;
    large language model
  1. Introduction
    The global agriculture system is facing increasing demands due to population
    growth, climate change and resource scarcity [1,2]. The advent of smart agriculture pow-
    ered by the Internet of Things (IoT) and big data along with artificial intelligence provides
    a vital route towards increased productivity and sustainability [3,4]. Real time collection
    of environmental parameters like soil moisture, temperature, and humidity through IoT
    monitoring systems generates the raw data streams which are processed at scale using big
    data analytics and transformed into actionable insights by artificial intelligence; these
    Academic Editor: Simone Pascuzzi
    Received: 17 August 2026
    Revised: 22 September 2026
    Accepted: 15 October 2026
    Published: 19 October 2026
    Copyright: © 2026 by the author.
    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.

AgriEngineering 2026, 8, 446 2 of 33

https://doi.org/10.3390/agriengineering8100446
form the foundational data and decision layer for precision agriculture [5,6]. As a result
of the constant advancements in low -cost sensing technologies, IoT monitoring systems
have evolved out of lab demonstrations and started being used in practice. Evaluation of
low-cost soil moisture sensors deployed in irrigated orchards has also validated their fea-
sibility when implemented under real cultivation conditions [7].
Despite these advances, widespread adoption of IoT systems across diverse farmland
environments frequently encounters a critical bottleneck: data heterogeneity. The coexist-
ence of diverse sensor types, communication protocols, and data formats disrupts dat a
consistency and ultimately undermines the reliability of higher -level analysis [6,8]. This
heterogeneity manifests at two distinct levels: communication protocol heterogeneity,
where sensors from different manufacturers may use incompatible protocols such as
Modbus, SDI-12 (Synchronous Data Interface at 1200 baud), or proprietary interfaces; and
data format heterogeneity, where even under the same protocol, variations in data frame
length, parity bits, and calibration curves prevent seamless integration. Recently, Miller
et al. [9] highlighted that achieving seamless interoperability between heterogeneous
sensing platforms remains a fundamental challenge in smart farming adoption.
Existing solutions to sensor heterogeneity predominantly focus on software -based
data harmonization at the cloud or gateway layer, employing data fusion techniques, mid-
dleware, or cloud-based integration frameworks [10]. Early-stage sensor data fusion pipe-
lines have been explored to reconcile heterogeneous data streams, yet these frameworks
still operate downstream of data acquisition [11]. While these solutions demonstrate tech-
nical feasibility, they suffer from three fundament al limitations: first, they operate after
data acquisition, meaning that heterogeneous data must still travel through the network
in non-standardized formats, consuming bandwidth and increasing processing complex-
ity at the gateway; second, they treat the symptom rather than the root cause—non-stand-
ardized hardware interfaces—which remains largely unaddressed [9,12]; and third, they
rely on cloud connectivity, making them vulnerable to network interruptions and intro-
ducing additional latency.
More recent systematic reviews consolidate these observations: Roccatello et al. [13],
identify that lack of shared communication standards between IoT devices in precision
agriculture presents major challenges since different sensors and systems utilize h etero-
geneous data formats which are often incompatible with one another. They suggest a con-
nector device translating sensor data into a standard format prior to entering the data-
base—addressing the issue at the data formatting level without considering hardware in-
terface unification. Likewise, Ahoa et al. [14] carried out a systematic review of 72 studies
and identified 27 distinct integration challenges covering organizational, technological
and data governance aspects, with data interoperability remaining a critical hurdle limit-
ing the development of smart systems such as machine learning and generative AI. Their
study identifies that current solutions predominantly focus on point to point and cloud-
based integration approaches, concentrating on software -level data harmonization and
ignoring the need for standardizing hardware interfaces. Together, these studies highlight
how although there have been attempts to standardize data formats at the software level,
unification of hardware interfaces—the foundational step for having consistent data from
the source—remains an underexplored area worth exploring. Our approach tackles these
issues by unifying sensor interfaces at the physical layer so that data is standardized from
the point of acquisition thus removing heterogeneity before it enters the network.
Beyond hardware -level unification, the system incorporates on -node edge pro-
cessing to reinforce data standardization at the point of acquisition. Recent work on smart
edge computing frameworks has demonstrated the value of shifting data processing from
the cloud to the field level for real-time agricultural decision-making [15]. Instead of rely-
ing on post-acquisition software-based harmonization, edge processing—including cyclic

AgriEngineering 2026, 8, 446 3 of 33

https://doi.org/10.3390/agriengineering8100446
redundancy check (CRC) validation, physical unit conversion, and JavaScript Object No-
tation (JSON) formatting—ensures that only structured and validated data enters the net-
work. By performing data quality assurance and formatting directly on the sensor nod e,
edge processing complements hardware standardization and shifts the harmonization
burden from the cloud to the data source. Consequently, this approach reduces band-
width consumption and enables local processing to remain functional even under inter-
mittent connectivity. For resource -constrained agricultural environments characterized
by unstable power supplies and limited network coverage, this capability provides a crit-
ical safeguard [16].
Alongside these developments, despite the progress in AI -driven decision support,
its implementation continues to face several barriers. Many AI applications in agriculture
demand local model deployment, special machine learning expertise and complex hu-
man–computer interaction [17,18]. Amalan and Arul Aram [19] explored the adoption of
AI amongst farmers, highlighting some key barriers related to high costs, low digital lit-
eracy, inadequate rural infrastructure and linguistic diversity in communication. They
conclude that successful adoption requires farmer centric strategies supported by sup-
portive extension services instead of simply offering technological solutions. Such chal-
lenges become even more prominent in smallholder settings, where usability and cost bar-
riers hinder adoption [20,21]. To lower the entry barrier for farmers, the system integrates
the DeepSeek LLM API with an agricultural knowledge base and real-time dynamic data
(e.g., sensor and weather data) for natural language -based decision support, while func-
tioning without local model deployment. Farmers obtain agricultural guidance through
natural language queries without requiring specialized machine learning expertise.
This research points to the need for a hardware –software co-design approach—em-
bodied in the proposed Agri -Synergy system, a name that encapsulates both its agricul-
tural focus (“ Agri”) and its synergistic integration of hardware –firmware co -designed
edge processing with AI-driven software interaction (“Synergy”). The main contributions
of this work are twofold:
(1) A hardware –firmware co-designed edge processing methodology. Unlike con-
ventional approaches that merely adopt RS485 as a physical bus while still tolerating het-
erogeneous data formats from various sensors, this study designed a universal sensor PCB
with an RS485/Modbus interface to unify multi-source sensor access at the physical layer.
While RS485/Modbus is not novel per se, its application as a mandatory hardware stand-
ard, combined with on-node edge processing (CRC validation, unit conversion, and JSON
formatting) to eliminate heterogeneity at the source—rather than reconciling it later—con-
stitutes the methodological contribution of this work.
(2) A low-cost AI interaction paradigm. In contrast to existing agricultural Q&A sys-
tems that rely on static knowledge bases or require local deployment of complex models,
this paradigm integrates the DeepSeek LLM API with an agricultural knowledge base and
dynamically incorporates real-time sensor data and other dynamic data (e.g., local real -
time weather), delivering context-aware decision support through natural language que-
ries. The system operates purely as an API client, avoiding the technical and economic
costs of local model deployment, thereby significantly lowering the professional barriers
for farmers to access intelligent decision-making systems.
The system was deployed in a 200 m2 experimental plot planted with perilla (Perilla
frutescens) in Yongmei Village, Lianshan County, Guangdong Province, China. Five sen-
sor nodes were installed to enable multi -parameter sensing of soil and air conditions,
while two actuator nodes were used to control irrigation and ventilation. Field tests con-
firmed that the system operated reliably, with performance meeting the expected design
goals. Detailed experimental results and analysis are presented in Section 3.

AgriEngineering 2026, 8, 446 4 of 33

https://doi.org/10.3390/agriengineering8100446
The remainder of this paper is structured as follows: Section 2 presents the system
design and implementation; Section 3 presents the experimental setup, procedures, re-
sults, and discussion; and Section 4 concludes the paper and outlines future directions.
2. Materials and Methods
This section presents the system design and implementation from a hardware–soft-
ware co-design perspective. At the hardware layer, a universal sensor PCB integrated
with an RS485/Modbus interface is developed to unify multi-source sensor access at the
physical layer. At the firmware layer (on -node edge processing), operations including
CRC validation, unit conversion, and JSON formatting ensure that data is standardized at
the point of acquisition before entering the network. This on- node processing comple-
ments hardware unification by enforcing data quality assurance at the source. At the soft-
ware layer, the DeepSeek LLM API is integrated with an agricultural knowledge base and
real-time sensor data, providing context-aware, natural language-based decision support
that allows farmers to interact with the system without local model deployment or spe-
cialized expertise. Through this co- design approach, the system aims to eliminate data
heterogeneity at the source, lower the adoption barrier for smart agricultural systems, and
deliver more effective decision support by leveraging dynamic data—offering capabilities
that surpass those of static knowledge-based AI solutions. The data and control flow be-
tween layers is illustrated in Figure 1.

Figure 1. System Data and Control Flow (solid arrows represent data flow, dashed arrows represent
control flow, and solid lines without arrows represent API call-and-response interactions).
As shown in Figure 1, the system adopts a four -layer architecture: Perception and
Execution Layer, Network Layer, Cloud Layer, and Application Layer. As shown at the
bottom of Figure 1, the Perception and Execution Layer contains five sensor nodes (Sensor
Application
Layer
Cloud Layer
Network
Layer
Perception
and
Execution
Layer
APP
Meteorological
Bureau API
DeepSeek API
Equipment
Management
TSDB
ESP32 MCU4G Module
ZigBee Coordinator
Sensor Node 1 Sensor Node 2 Sensor Node 5. . . Actuator Node 1 Actuator Node 2
External
API
Local display screen
Protocol Broker
& Command Relay
OneNet
loT
Platform

AgriEngineering 2026, 8, 446 5 of 33

https://doi.org/10.3390/agriengineering8100446
Nodes 1–5) and two actuator nodes (Actuator Nodes 1–2), connected respectively to sen-
sors measuring soil moisture, temperature, humidity, light intensity, and CO2 concentra-
tion, and to actuators including irrigation pumps and ventilation fans. Above this, the
Network Layer consists of a data terminal integrating an ESP32 microcontroller unit
(MCU), a 4G module, and a local display screen, which aggregates sensor data from the
field and uploads it to the cloud via the 4G module, while also supporting on -site status
monitoring through the local display. The Cloud Layer is built on the OneNET IoT plat-
form, which provides Equipment Management and a time-series database (TSDB) for de-
vice registration and time -series data storage, and relies on a unified Protocol Broker &
Command Relay to handle all data and command forwarding. At the top, the Application
Layer contains the mobile application (APP), which communicates with the Cloud Layer
via HTTP/1.1 and integrates external APIs —including the DeepSeek V3.2 API for AI -
driven decision support and the Meteorological Bureau API for weather data—to deliver
real-time visualization, remote control, and intelligent advisory.
In terms of data and control flow, uplink sensor data originates from the sensor nodes
and is transmitted via ZigBee to the data terminal at the Network Layer. The terminal
aggregates the data and uploads it through the 4G module to the Cloud Layer using
MQTT, where the OneNET platform stores it in the TSDB and makes it accessible to the
Application Layer via HTTP. Downlink control commands follow the reverse path: initi-
ated from the APP at the Application Layer, commands are sent via HTTP to the Cloud
Layer, relayed by the Protocol Broker to the 4G module at the Network Layer, and finally
forwarded to the target actuator nodes via ZigBee. Additionally, API call -and-response
interactions, represented by solid lines without arrows, occur between the Application
Layer and the DeepSeek API, as well as between the Cloud Layer and external APIs such
as the Meteorological Bureau API, supporting both AI-assisted decision-making and me-
teorological data integration. This bidirectional flow enables real-time monitoring and re-
mote actuation while mitigating the coverage –bandwidth trade -off inherent in single -
technology solutions.
2.1. Hardware Design
The sensor nodes are equipped with commercially available, low -power sensors ca-
pable of measuring key agronomic parameters. Table 1 lists the specifications of the inte-
grated sensors from JXCT (Shandong, China). These sensors were selected for their com-
patibility with the RS485/Modbus interface, which enables standardized connection to the
universal sensor PCB. The specified accuracy of each sensor meet s the typical require-
ments for precision agricultural monitoring.
Table 1. Specifications and accuracy of integrated sensors (JXCT, Weihai).
Sensor Type Model Parameter Measurement Range Nominal Accu-racy Output Signal
Soil Temperature Sensor JXBS-3001-TR Soil Temperature −40~+80 °C ±0.5 °C RS485/Modbus
Soil Moisture Sensor JXBS-3001-SL Volumetric Water Content 0–100% ±5% RS485/Modbus
Soil pH Sensor JXBS-3001-PH Soil pH value 4–10 pH ±0.3 pH RS485/Modbus
Soil NPK Sensor JXBS-3001-NPK N, P, K content 0–1999 mg/kg ±3% RS485/Modbus
Air Temperature and Hu-
midity Sensor JXBS-3001-TH Temperature/Hu-midity −40~80 °C/0–100% ±0.3 °C/±3% RS485/Modbus
Light Intensity Sensor JXBS-3001-GZ Light Intensity 0–200,000 lux ±5% RS485/Modbus
CO2 Sensor JXBS-3001-CO2 CO2 Concentration 0–5000 ppm ±50 ppm + 3% RS485/Modbus
With the sensor components selected, the hardware design focuses on three dedi-
cated PCBs. As shown in Figures 2 –4, the Data Terminal PCB serves as the system

AgriEngineering 2026, 8, 446 6 of 33

https://doi.org/10.3390/agriengineering8100446
gateway; the Universal Sensor PCB standardizes RS485/Modbus sensor connections; and
the Execution Module PCB controls irrigation and ventilation actuators.

Figure 2. Data Terminal Dedicated PCB.
The data terminal PCB (Figure 2) serves as the system gateway. It is designed to han-
dle unstable power supplies common in farmland by incorporating a wide-voltage input
(9–24 V DC). Level -shifting circuitry ensures reliable Universal Asynchronous Receiver -
Transmitter (UART) communication between the ESP32, ZigBee coordinator, and 4G
module. The gateway aggregates data from all sensor nodes and uploads it to the cloud
via a 4G LTE (Long Term Evolution) Category 1 (Cat.1) module using the Message Queu-
ing Telemetry Transport (MQTT) protocol.
The ZigBee module (Ebyte(Sichuan, China) E34-2G4D20D) was selected for its suita-
bility for field environments. Its 2000 m communication range in open areas provides ad-
equate coverage for the 200 m2 test plot and allows for future scalability. The full-duplex
capability supports simultaneous data transmission and reception, which is essential for
real-time monitoring and control applications.
Table 2 presents the specifications of the selected 4G module (Tastek(Zhejiang, China)
TAS-LTE-4G[E27V]). The LTE Cat.1 standard provides sufficient communication band-
width for multi -node agricultural data transmission, while the wide operating voltage
range improves compatibility with variable field power conditions.
Table 2. 4G module specifications (Tastek TAS-LTE-4G[E27V]).
Parameter Specification Relevance to System Design
Network Standard LTE Cat.1 Broad coverage, reliable connectivity
Data Rate Downlink 10 Mbps, Uplink 5 Mbps Sufficient for multi-node data aggregation
Operating Voltage DC 5~36 V Wide range accommodates unstable farm power
Operating Temper-
ature −30~+75 °C Suitable for outdoor agricultural environments
Network Protocols TCP, UDP, MQTT, HTTP, WebSocket, NTP Supports diverse cloud integration options
Network Channels 2 Enables simultaneous connections to multiple server
Network Buffer 50 KB/50 messages shared Prevents data loss during network interruptions
1
1
2
2
3
3
4
4
5
5
6
6
A A
B B
C C
D D
11
22
33
44
CN3
ZX-XH2.54-4PWZ
RX1
TX1
+5V
GND
1 12 23 34 45 56 67 78 89 910 1011 1112 1213 1314 1415 15
U1
KH-2.54FH-1X15P-H8.5
11 22 33 44 55 66 77 88 99 1010 1111 1212 1313 1414 1515
U2
KH-2.54FH-1X15P-H8.5
RX2
TX2
TX1
RX1
ESP32 Chip Base
+5V
GND
GND
Screen Interface
11
22
33
44
55
66
77
H1
PM254V-11-07-H85
M0
M1
TX1
RX1
+5V
GND
ZigBee Module Socket
11
22
33
44
55
66
77
88
99
1010
1111
1212
U3
PM254-1-12-Z-8.5
+12V
GND
TX2
RX2
NETMODE
LINK
LINK
NETMODE
4G Module Interface
11
22
33
44
55
66
77
88
99
1010
1111
U4
KH-2.54FH-1X11P-H8.5
NFC Module Interface
Boost Converter (Adjustable)
1 1
2 2
CN4
ZX-XH2.54-2PWZ
D2
1N4007
C5
100uF
C3
100uFC6
1uF
C4
1uF
L1
33uH
VIN
4
GND
1
EN
2
FB
5
SW
3U5
XL6019 R2
331
FB
SW
+12V
GND
D3
SS34
VR1
10kΩ
+5V
GND
+5V
SDA
SCL
SDA
SCL
11
22
33
44
H2
WA F ER-PH2.0-4PWZ
3
2
1
U6
SS12D10G6-WJ
M1
M0

AgriEngineering 2026, 8, 446 7 of 33

https://doi.org/10.3390/agriengineering8100446
The Universal Sensor PCB (Figure 3), which forms the core of the hardware stand-
ardization strategy, is designed to standardize the connection of RS485 sensors using the
Modbus protocol. Its circuitry provides stable power regulation and isolates analog/digi-
tal signal domains to minimize noise. On each node, an ESP32 handles the complete data
acquisition process: sending Modbus commands, receiving responses, CRC validation,
physical unit conversion, and JSON formatting. This edge -processing approach ensures
that only structured and validated data enters the network, regardless of the sensor model
or manufacturer.

Figure 3. Universal sensor PCB.
Complementing the sensing infrastructure, the execution module PCB (Figure 4) is
designed to control actuators such as water pumps and ventilation fans. It features an
optocoupler-isolated relay driver circuit that electrically isolates the low -voltage control
side from the high-voltage actuator side, protecting the microcontroller. The output inter-
face uses screw terminals, allowing flexible connection of different AC (Alternating Cur-
rent) and DC (Direct Current) loads under various agricultural deployment scenarios.
Based on the schematic designs, the corresponding hardware prototypes were fabri-
cated. Figure 5 presents photographs of the key hardware components, including: the
front and back sides of the bare universal sensor PCB (Figure 5a), the overall internal lay-
out of the PCB assembled within the waterproof enclosure (Figure 5b), a close-up view of
the internal wiring and module connections (Figure 5c), and the exterior of the fully as-
sembled sensor node (Figure 5d).
1
1
2
2
3
3
4
4
5
5
6
6
A A
B B
C C
D D
11
22
33
44
55
66
77
88
99
1010
1111
1212
1313
1414
1515
U1
KH-2.54FH-1X15P-H8.5
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 15
U2
KH-2.54FH-1X15P-H8.5
RX2
TX2
TX1
RX1
ESP32 Chip Base RS485-TTl
GND
GND
GND
GND
GND
GND
GND
RO1
RE#2
DE3
DI4 GND 5A 6B 7VCC 8
U4
SP3485EN-L/TR
D4
S MBJ6.5CA/TR13
D5
S MBJ6.5CA/TR13
D6
S MBJ6.5CA/TR13
C2
0.1uF
Q1
SS8050
R6
1K
TX2
RX2
R7
4.7K
R8
4.7K
11
22
33
44
CN3
ZX-XH2.54-4PWZ
RX1
TX1
Screen Interface
GND1
FB2
SW 3
VC4
VIN5
SW 6
U5
XL4015E1
C3
220uF
C4
1uF
C5
1uF
D7
SK1045B
C6
1uF
C7
330uF
R9
10K
R10
3.3K
C8
33nF
12v to 5v
+5V
+5V3.3V
3.3V
3.3V
3.3V
R11
4.7K
R12
4.7K
+5V
1 1
2 2
CN4
BX-XH2.54-2PWZ
1
2
3
SW1
SS-12D11G5R
11
22
33
44
CN5
DB128V-5.08-4P-GN-S
GND
GND
GND
12V
12V
GND
L1
47uH
11
22
33
44
55
66
77
H1
PM254V-11-07-H85
M0
M1
TX1
RX1
+5V
GND
ZigBee Module Socket
M0
M1

AgriEngineering 2026, 8, 446 8 of 33

https://doi.org/10.3390/agriengineering8100446

Figure 4. Execution module PCB.
The universal sensor PCB (Figure 5a) measures 70 mm × 90 mm on a double -layer
FR-4 substrate, with the ESP32 microcontroller, RS485 level-shifting circuitry, voltage reg-
ulation modules, and external interface terminals arranged on the front side, while the
back side primarily accommodates the wireless communication module interface and
LCD interface. All signal interfaces employ reverse- polarity protection to facilitate safe
and convenient field installation. Figure 5b presents the internal layout of the PCB within
the waterproof enclosure, where the ESP32 core board, RS485 communication module,
ZigBee transparent transmission module, and power conversion module are clearly par-
titioned in a compact yet heat- dissipation-friendly arrangement. Figure 5c further pro-
vides a detailed view of the internal wiring, showing that sensor signal lines, power ca-
bles, and communication wires are all routed through waterproof connectors and secured
with snap -fit or terminal block connections to ensure reliable connectivity under pro-
longed vibration. Figure 5d displays the exterior of the fully assembled sensor node. The
waterproof enclosure is fabricated from flame-retardant and environmentally friendly PC
material, achieving an IP68 protection rating that allows complete submersion without
water ingress, thereby withstanding extreme field conditions including heavy rainfall,
high humidity, and dust. The enclosure me asures 100 mm × 100 mm × 62 mm, with all
external interfaces equipped with standard waterproof connectors, which effectively con-
trol hardware costs while maintaining adequate waterproof performance. Sensors are
connected to the node housing via waterproof cables. The node base is equipped with
screw holes, supporting both pole -mounting and ground- stake installation methods to
accommodate varying field conditions.
1
1
2
2
3
3
4
4
5
5
6
6
A A
B B
C C
D D
11
22
33
44
55
66
77
88
99
1010
1111
1212
1313
1414
1515
U1
KH-2.54FH-1X15P-H8.5
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 15
U2
KH-2.54FH-1X15P-H8.5
TX1
RX1
ESP32 Chip Base
+5V
GND
GND
M0
M1
11
22
33
44
55
66
77
H1
PM254V-11-07-H85
M0
M1
TX1
RX1
+5V
GND
ZigBee Module Socket
GND1
FB2
SW 3
VC4
VIN5
SW 6
U5
XL4015E1
C3
220uF
C4
1uF
C5
1uF
D7
SK1045B
C6
1uF
C7
330uF
R9
10K
R10
3.3K
C8
33nF
12v to 5v
+5V
1 1
2 2
CN4
BX-XH2.54-2PWZ
GND
L1
47uH
GND
VCC2 VCC2
GND
GND
GNDRELAY-V
SW
GND
SW
+5V +5V
12V Relay Switch
1
2
3
P2
PZ254V-11-03P
1
2
3
P3
WJ300V-5.0-3P
1
2 3
4
U6
BPC-817SC D1
1N4007W
TR I1
LT S T-C190KSK T
R2
2.2kΩ
Q2
MMBT3906
R5
510Ω
R1
510Ω
3
1
2
Q1
DTC143ECA R4
AR03FT B1002
VCC1
A-SP192GB1D-A02-4T
R11
2.2kΩ
1
2
3
SW1
SS12D10G6-WJ
VCC2
1
2 3
4
5
RE1
SRD-12VDC-SL-C
RE LAY-V

AgriEngineering 2026, 8, 446 9 of 33

https://doi.org/10.3390/agriengineering8100446

Figure 5. Hardware implementation of the Agri-Synergy system. Footnote: The Chinese text in sub-
figures (a) and (c ) is printed on the PCB and shows the project name as well as the PCB size and
version.
2.2. Network Configuration
While the individual PCBs provide the hardware foundation, the uneven cellular
coverage typical of agricultural fields renders single-technology communication solutions
unreliable, a limitation that system integration must address. To overcome this, a hybrid
ZigBee and 4G networking scheme is implemented. The design combines local mesh net-
working for field-level coverage with cellular backhaul for cloud connectivity.
Within this architecture, ZigBee forms a local mesh network among sensor nodes,
providing low-power, self-healing communication within the field. Each node relays data
to the gateway, extending coverage without additional infrastructure. The gateway then
uses 4G Cat.1 to upload aggregated data to the cloud. This bidirectional data and control
flow—uplink sensor data from the perception layer to the application layer, and downlink
commands in reverse—enables real-time monitoring and remote actuation. This configu-
ration mitigates the coverage –bandwidth trade- off inherent in single-technology solu-
tions.
2.3. Software Implementation
With the hardware and network layers established, the software architecture is de-
signed to operationalize two principles: (1) processing data at the edge to maintain data
standardization, and (2) leveraging cloud-based LLM APIs integrated with an agricultural
knowledge base and other dynamic real-time data to deliver AI capabilities without local
model deployment. To realize these principles systematically, the software part of the sys-
tem adopts a three -tier architecture consisting of the edge computing tier (sensor nodes
and data terminal), the cloud & AI tier (cloud platform with integrated knowledge base

AgriEngineering 2026, 8, 446 10 of 33

https://doi.org/10.3390/agriengineering8100446
and LLM), and the user interaction tier (mobile application). Figure 6 illustrates the overall
system software architecture and data flow across these three tiers.

Figure 6. Software architecture with three-tier modular composition (solid arrows represent data
flow, dashed arrows represent control flow).
While Figure 1 depicts the physical network topology, Figure 6 focuses on software-
level modular composition and data interaction. Environmental data collected by sensors
undergoes edge preprocessing (CRC validation, unit conversion, and JSON formatting),
then is transmitted via the Wireless Communication Manager to the Edge Aggregator &
Gateway Service, which uploads aggregated data to the cloud tier and simultaneously
presents real-time information on the Edge Visualization Panel for on-site monitoring. At

AgriEngineering 2026, 8, 446 11 of 33

https://doi.org/10.3390/agriengineering8100446
the cloud tier, the OneNET platform serves as the core data hub, hosting the HTTP Broker
& Command Relay, MQTT Broker & Command Relay, Device Registry & Connectivity
module, and Time-series Database, with the Agricultural Knowledge Base, Meteorologi-
cal Bureau API, and DeepSeek LLM API integrated as independent external modules.
Data then flows to the user interaction tier, where the Device Data Access Control Center
fetches and displays real-time sensor data, while the Human–AI Interaction Module con-
structs composite prompts from user queries, sensor data, and knowledge base content
for submission to the DeepSeek LLM API. Control commands are dispatched from the
Device Data Access Control Center via the cloud tier, or issued locally from the Edge Vis-
ualization Panel, and routed to the Actuator Command Executor to activate devices such
as irrigation pumps and ventilation fans. The three tiers are described in detail in Sections
2.3.1–2.3.3.
2.3.1. Edge Computing Tier: Data Acquisition and Edge Aggregation
As the foundational layer of the software architecture, the edge computing tier han-
dles real-time data acquisition, standardization, and local aggregation at the point of sens-
ing. This tier operates independently of cloud connectivity, ensuring system reliability
under intermittent network conditions.
On each sensor node, firmware performs scheduled data acquisition tasks in se-
quence: Modbus command transmission, response reception, CRC validation, unit con-
version, and JSON formatting. This on-node processing ensures that all data entering the
network is already standardized, regardless of sensor manufacturer or model differences.
Standardized packets are then transmitted via ZigBee to the data terminal at configurable
intervals (default: 30-s reporting period).
The data terminal serves as the edge gateway, aggregating standardized JSON pack-
ets from all sensor nodes via the ZigBee mesh network. Upon reception, it performs two
primary functions: (1) local display: presenting real-time information on an on-site screen
without requiring external devices, enabling field operators to monitor system health and
data flow at a glance; (2) cloud synchronization: uploading aggregated data to the
OneNET cloud platform via 4G/MQTT protocol at scheduled intervals. The data terminal
maintains a real-time buffer capability to handle transient network interruptions, with re-
try logic for failed transmissions (retransmission threshold: 3 attempts over 60 s). Figure
7 shows the on-site data terminal display during field deployment.
The screen presents real-time information including current sensor readings for each
node (soil temperature, soil moisture, CO 2 concentration, humidity, light intensity), net-
work status indicators (ZigBee signal strength —received signal strength indicator
(RSSI)—for each connected node, 4G connection status, and cloud connectivity), system
timestamp and uptime, and data transmissi on logs showing recent uplink packets and
acknowledgments. This display allows field operators to monitor system health and man-
age devices without requiring a separate computer or mobile device.

AgriEngineering 2026, 8, 446 12 of 33

https://doi.org/10.3390/agriengineering8100446

Figure 7. Data Terminal Display Interface (a) Display Screen Home Page; (b) Display Screen Data
Page.
2.3.2. Cloud & AI Tier: Knowledge Base and LLM Integration
Intelligent Decision Support at Cloud Tier: We leverage both structured agricultural
knowledge and large language model capabilities as a backend service that does not in-
teract directly with users.
Large Language Model Selection. We chose DeepSeek as our underlying large lan-
guage model due to its comprehensive advantages in terms of cost efficiency, performance
within the agricultural domain, and knowledge integration. It costs less than mainstream
commercial models by an order of magnitude, which addresses the high-cost barrier lim-
iting AI adoption among smallholders [19 –21]. In the Agri Eval agricultural benchmark
spanning seven disciplines, DeepSeek R1 reached a top tier accuracy of 75.49% compara-
ble to leading international models; independent studies verify its superior agricultural
knowledge coverage —screening 4.8 –49.7× larger literature corpora compared to
ChatGPT–4o—as well as its closest match to standard agronomic practices in sowing, nu-
trient, and irrigation advisory. Combined with proven adaptability in various agricultural
deployments, these features make it ideal for leveraging real time sensor data alongside
curated agronomic knowledge to deliver context aware recommendations.
Agricultural Knowledge Base Construction. Based on the standardized data
streams from the edge, we implement intelligent decision support using a combination of
structured agricultural knowledge and large language model capabilities at the cloud &
AI tier. Grounded in verified agronomic knowledge, we structure the agricultural
knowledge base into three functional categories specifically designed for the monitored
crop environment. First, crop cultivation guidelines contain information about the opti-
mal range of growth parameters for the targeted crops, specifying recommended soil tem-
perature, soil moisture thresholds, and air temperature and humidity ranges throughout

AgriEngineering 2026, 8, 446 13 of 33

https://doi.org/10.3390/agriengineering8100446
different growth stages. Second, environmental alert rules map threshold -based condi-
tions to actions ; e.g., trigger irrigation if soil moisture drops below a specified lower
bound, activate ventilation if air temperature exceeds the upper limit, etc. Third , agro-
nomic advisory content contains short, plain language advice regarding fertilization
schedules, pest and disease prevention indicators, and seasonal management practices
pertinent to the deployment context. Compiled from official crop cultivation sta ndards,
public agricultural extension manuals, and published findings in precision agriculture
and soil–plant–atmosphere interactions, this knowledge base is cross -validated against
regional agronomic recommendations, and implemented as a lightweight system prompt
appended to every API request to the DeepSeek LLM, grounding the model ’s responses
in domain specific agronomic knowledge without the infrastructure overhead of a dedi-
cated retrieval augmented generation (RAG) system.
Dynamic Data Integration and Prompt Construction. Beyond this static knowledge
foundation, the system dynamically incorporates real-time sensor data and weather data
into the decision- making process. The OneNET cloud platform serves as the data hub,
storing all sensor data collected from the edge tier, managing device registrations and
connectivity states, and providing APIs for data access and remote -control commands.
Historical data is stored in a time -series database to enable trend analysis and long -term
monitoring. In parallel, real -time weather data is obtained from the Meteorological Bu-
reau API as an independent external service. When a request arrives from the application
layer, the cloud tier constructs a composite prompt consisting of: (1) the knowledge base
system prompt contain ing cultivation guidelines and alert thresholds, (2) current real-
time sensor readings fetched from the cloud database, (3) real-time weather data from the
Meteorological Bureau API, and (4) the user’s query text. For example, a typical composite
prompt might look like: “System: You are an agricultural advisor for perilla. Use the fol-
lowing thresholds: soil moisture 6 0–80%, soil temperature 2 0–25 °C. Real -time sensor
data: Soil moisture = 55%, soil temperature = 24 °C. Weather data: Current temperature =
32 °C, no rain forecast. User query: ‘Does my perilla need watering right now?’” This con-
catenated input is then submitted to the DeepSeek API. The returned response is sent back
to the application layer for presentation. This combination of static agronomic knowledge
and dynamic sensor data represents a key advantage over existing agricultural Q&A sys-
tems that rely solely on static knowledge bases.
2.3.3. User Interaction Tier: Mobile Application
Serving as the primary interface between the farmer and the intelligent system, the
user interaction tier is implemented through a mobile application that enables both man-
ual control and AI-assisted decision support. The mobile application is divided into two
complementary functional parts: Device Data Access Control and AI Interaction.
Device Data Access Control allows farmers to view real -time sensor data updated
from the cloud platform and manually dispatch control commands to actuators. This
mode provides direct access to current environmental parameters and enables emergency
manual intervention when needed.
AI Interaction implements the natural language -based decision support workflow.
As illustrated in Figure 8, the user inputs a question in natural language through the mo-
bile application interface. The application sends the query to the cloud tier, where the
composite prompt described in Section 2.3.2 is constructed and the DeepSeek LLM API is
called. The returned response is parsed and presented in a conversational format.
Figure 8 shows a representative interaction captured during field deployment. Upon
receiving the user’ s natural language query, the system retrieved the current real -time
sensor readings from the OneNET cloud platform and injected them into the composite
prompt alongside the knowledge base thresholds. The DeepSeek API returned a two-part

AgriEngineering 2026, 8, 446 14 of 33

https://doi.org/10.3390/agriengineering8100446
response. The first part provides a parameter- by-parameter assessment, in which each
sensor value is explicitly compared against its corresponding optimal range and assigned
a status indicator. For parameters flagged as Critical or Alert, the response further pro-
vides specific, actionable recommendations. The second part consolidates all assessments
into a structured summary table, listing each parameter ’s current value, optimal range,
status, and recommended action, enabling the user to quickly identify critical issues with-
out reading through the full narrative response.

Figure 8. AI decision support interface on the mobile application.
The interface shows a complete interaction with parameter -by-parameter environ-
mental assessment and a consolidated summary table. The response explicitly references
real-time sensor values against knowledge base thresholds, assigns status indicators, and
provides actionable recommendations. This interaction demonstrates the system ’s capa-
bility to deliver actionable, data -grounded agricultural guidance through natural lan-
guage interaction. By treating AI as a cloud-accessible service rather than an in-house sys-
tem component requiring local deployment, the system addresses the usability barriers
identified in previous studies and enables ordinary farmers to obtain agricultural guid-
ance through natural language queries without requiring specialized machine learning
expertise.
Upon user confirmation of an AI-generated suggestion, or when a manual command
is issued directly, a control command is triggered. Commands are sent from the mobile
application to the cloud platform. The data terminal receives commands from the cloud,
parses and routes instructions via Z igBee to target actuator nodes, which activate relays
to perform actions (e.g., irrigation, ventilation). The entire system operates in a closed
loop: data acquisition—transmission—cloud upload—user interaction (manual or AI-as-
sisted)—command execution—data acquisition, enabling real- time monitoring and re-
mote control of agricultural environments. To further enhance system accessibility and
lower adoption barriers, the mobile application incorporates multi -language support to
address one of the major adoption barriers identified in [19]—linguistic diversity. The mo-
bile application and data terminal interface support multiple languages, including Chi-
nese and English, allowing farmers and agricultural technici ans to interact with the sys-
tem in their preferred language. Language selection defaults to automatic switching based

AgriEngineering 2026, 8, 446 15 of 33

https://doi.org/10.3390/agriengineering8100446
on device location, while users can also configure it during initial setup or adjust it in real-
time through the settings menu. This localization capability is achieved through a re-
source-based internationalization framework, where all user-facing text strings are stored
in external language files and dynamically loaded based on user preference.
3. Experimental Verification
Herein, we present the experimental validation of the proposed Agri -Synergy IoT
system and discuss its performance based on field tests, including a comparative analysis
with existing systems. For evaluating the system under real field conditions, we select a
200 m2 experimental farmland plot located in Yongmei Village, Lianshan County, Guang-
dong Province, which has a mid-subtropical monsoon climate characterized by an annual
average temperature of 18.9 °C, annual rainfall of 1753 mm, and relative humidity of 82%.
We conduct the field trial in mid to late July, corresponding to the vegetative growth stage
of perilla—a critical period where environmental conditions have direct impact on bio-
mass accumulation and subsequently yield formation. July in this region is characterized
by high temperatures (daily maximums frequently exceeding 33 °C), high relative humid-
ity (above 80%), and intermittent afternoon thundershowers. Although the weather was
generally stable during the test period with no extreme events, these conditions represent
the common and challenging environment for agricultural monitoring in this area. This
deployment allowed comprehensive testing of data acquisition, network communication,
and control functionality under typical summer stressors.
The system was deployed with five sensor nodes and two actuator nodes. Sensor
nodes were configured to measure soil parameters —including moisture, temperature,
pH, and nitrogen, phosphorus, and potassium (NPK) content—as well as air temperature,
humidity, light intensity and CO 2 concentration. Actuator nodes were connected to irri-
gation and ventilation control devices to enable remote management.
Functional tests verified data acquisition accuracy (based on sensor specifications in
Table 1), ZigBee and 4G connectivity, and remote-control functionality via the mobile ap-
plication. Performance analysis compared single -node and multi -node transmission la-
tency. Testing revealed that concurrent transmissions from multiple nodes caused packet
collisions in the ZigBee network, increasing latency and introducing packet loss.
3.1. Data Acquisition Accuracy
During the field deployment conducted from 11 July to 31 July 2025, five sensor
nodes continuously collected environmental data. For communication performance eval-
uation, the reporting interval was configured as 30 s, resulting in approximately 2400 data
records during the four- hour benchmark period. This interval was selected to balance
temporal resolution, communication load, and energy consumption, and can be adjusted
through firmware configuration according to different application requirements.
Sensor Accuracy Validation:
To rigorously validate the measurement accuracy under actual field conditions be-
yond relying solely on manufacturer-stated specifications, a side-by-side comparative ex-
periment was conducted against calibrated reference instruments. For soil parameters, the
domestically produced SM230 soil moisture/temperature/electrical conductivity sensor
(Xi’an SMR Environment Technology Co., Ltd., Xi’an, China) was employed as the refer-
ence for soil moisture and temperature, with specified accuracies of ±2% for moisture and
±0.2 °C for temperature. A laboratory benchtop pH meter ( Shanghai Sanxin Instrument
Factory, Shanghai, China, PHS-3C-01, accuracy ±0.01 pH) and a soil nutrient rapid tester
(Shandong Huarde Electronic Technology Co., Ltd., Shandong, China, HED -TYB, accu-
racy ±3%) were used as references for soil pH and NPK, respectively. For meteorological
parameters, the eight -element portable weather station TH -BQX8 (Shandong Tianhe

AgriEngineering 2026, 8, 446 16 of 33

https://doi.org/10.3390/agriengineering8100446
Environmental Technology Co., Ltd., Shandong, China) was used as the reference, with a
specified accuracy of ±0.3 °C for air temperature and ±2% RH for relative humidity. Both
the system sensors and the reference probes were installed at the same depth (10 cm)
within a 1-m2 representative plot to minimize spatial variability.
Data were logged simultaneously at 5- min intervals over a continuous 72-h period,
covering both daytime heating and nighttime cooling cycles. For each parameter, three
statistical metrics were calculated based on n paired observations: Bias (systematic offset),
Mean Absolute Error (MAE), and Root Mean Square Error (RMSE).
Table 3 summarizes the validation results. The MAE for soil temperature and soil
moisture reached 0.33 °C and 3.2% VWC, respectively, both well confined within the man-
ufacturer’s tolerances of ±0.5 °C and ±5%. The MAE for soil pH was 0.12 pH, within the
manufacturer’s ±0.3 pH specification. For soil nitrogen content (as a representative of
NPK), the MAE was 2.0 mg/kg with repeatability better than 1%, meeting the manufac-
turer’s ±3% accuracy requirement. For air temperature, the MAE was 0.36 °C and the
RMSE was 0.43 °C, both exceeding the manufacturer ’s nominal specification of ±0.3 °C.
Although such a deviation is not negligible from a strict metrological perspective, it re-
mains acceptable for agricultural monitoring applications, where temperature variations
of this magnitude have limited influence on crop growth assessment and irrigation deci-
sion-making. For air humidity, the RMSE was 2.4% RH, which remained within the nom-
inal specification of ±3% RH. For CO 2 concentration, the measured relative error was
−2.6% with a repeatability of 1.3%, corresponding to an MAE of approximately 52 ppm,
which falls within the manufacturer‘s tolerance of ±50 ppm + 3%. For light intensity, the
relative errors across different ranges ranged from +0.5% to +1.2% with repeatability better
than 0.3%, corresponding to an MAE of approximately 99 lux, meeting the manufacturer’s
±5% specification. Notably, a small negative bias (−1.3% VWC) was observed for soil mois-
ture, which is reasonably attributed to the inevitable micro-scale soil structural differences
(e.g., bulk density and root distribution) between the installation points of the system
probe and the reference probe, rather than to electronic measurement drift. The absence
of large systematic biases across all paramet ers confirms that the custom -designed uni-
versal sensor PCB, together with the on-node edge processing (CRC validation and phys-
ical unit conversion), does not introduce additional signal distortion, thereby preserving
the intrinsic accuracy of the commercial sensing elements.
Table 3. Comparison of Agri-Synergy sensor readings against calibrated reference instruments.
Parameter Reference Instrument Bias MAE RMSE Manufacturer Spec.
Soil Temperature SM230 (Xi’an SMR, Xi’an, China) +0.10 °C 0.33 °C 0.41 °C ±0.5 °C
Soil Moisture (VWC) SM230 (Xi’an SMR, Xi’an, China) −1.3% 3.2% 3.9% ±5%
Soil pH
Benchtop pH meter
(Shanghai Sanxin Instru-
ment Factory, PHS-3C-01,
Shanghai, China)
+0.06 pH 0.12 pH 0.15 pH ±0.3 pH
Soil Nitrogen (N)
Soil nutrient rapid tester
(Shandong Huarde Elec-
tronic Technology Co.,
Ltd., HED-TYB, Shandong,
China)
+1.0 mg/kg 2.0 mg/kg 2.3 mg/kg ±3%

AgriEngineering 2026, 8, 446 17 of 33

https://doi.org/10.3390/agriengineering8100446
Air Temperature TH-BQX8 (Shandong Tianhe, Shandong, China) −0.15 °C 0.36 °C 0.43 °C ±0.3 °C
Air Humidity TH-BQX8 (Shandong Tianhe, Shandong, China) +0.6% RH 1.9% RH 2.4% RH ±3% RH
Light Intensity
TH-BQX8 light sensor
(Shandong Tianhe, Shan-
dong, China)
+0.7% (relative) 99 lux 114 lux ±5% (relative)
CO2 Concentration
Reference CO2 analyzer
(Beijing PRI-ECO, PRI-
8610U, Beijing, China)
−2.6% (relative) 52 ppm 63 ppm ±50 ppm + 3%
3.2. Power Consumption Estimation
This section provides theoretical power consumption estimates for the system com-
ponents to guide power supply selection for unattended field deployment.
(1) Sensor Node Power Consumption Estimation
Each sensor node operates on a 12 V DC supply and comprises an ESP32 -S3 (Ac-
tive/RF receiving mode, ~97 mA @ 3.3 V), a ZigBee module (Ebyte E34-2G4D20D, 110 mA
TX/21.5 mA RX @ 5V), a sensor module (0.15 W, active ~200 ms), and a buck converter (12
V→5 V, 85% efficiency).
During the measurement phase (~200 ms): the ESP32 -S3 is in Active/RF receiving
mode, the sensor module is powered on, and the ZigBee module remains in receiving/lis-
tening mode. The equivalent current on the 5 V side is approximately: (97 mA × 3. 3 V/5
V/0.85) + 30 mA + 21.5 mA + 2 mA ≈ 128.7 mA.
During the communication phase (~150 ms): the ZigBee module switches to transmit
mode while the sensor module is turned off. The equivalent current on the 5 V side is
approximately: (97 mA × 3.3 V/5 V/0.85) + 110 mA + 2 mA ≈ 187.7 mA.
During the idle interval (~29.65 s): the ESP32 -S3 remains in Active/RF receiving
mode, the ZigBee module stays in receiving/listening mode, and the sensor module is off.
The equivalent current on the 5 V side is approximately: (97 mA × 3. 3 V/5 V/0.85) + 21.5
mA + 2 mA ≈ 98.9 mA.
The energy consumption for each phase is: measurement phase ~128.7 mJ, commu-
nication phase ~140.8 mJ, and idle interval ~14,666 mJ. The total energy per 30-s cycle is
approximately 14,936 mJ, corresponding to an average power of ~497.9 mW and a daily
energy consumption of ~11.95 Wh. A single node powered by a 1 2 V/10 Ah (~120 Wh)
battery can operate continuously for approximately 10 days.
(2) Data Terminal Gateway Power Consumption Estimation
The gateway is also powered by a 12 V DC supply and consists of four main compo-
nents: the ESP32-S3 main controller (~97 mA @ 3.3 V), the ZigBee coordinator module (21.5
mA @ 5 V), the 4G Cat.1 module (Tastek TAS-LTE-4G[E27 V], typical current 13 mA @ 12
V, ~0.156 W), and the 7 -inch serial touchscreen (~530 mA @ 5 V, ~2.65 W with backlight
on).
Under normal operating conditions (LCD backlight on, ZigBee continuously listen-
ing, 4G maintaining connectivity), the total current on the 12 V side is approximately: (97
mA × 3.3 V/12 V/0.85) + (21.5 mA × 5 V/12 V) + 13 mA + (530 mA × 5 V/12 V) ≈ 31.4 + 9.0 +
13 + 220.8 ≈ 274 mA.
This corresponds to an average power consumption of ~3.29 W and a daily energy
consumption of ~79.0 Wh. Transient 4G upload peaks last only about 2 s and contribute
negligibly to the average daily energy consumption.
(3) Total System Energy Consumption and Power Supply Recommendations

AgriEngineering 2026, 8, 446 18 of 33

https://doi.org/10.3390/agriengineering8100446
For the complete system comprising five sensor nodes and one gateway, the total
daily energy consumption is approximately 11.95 Wh × 5 + 79.0 Wh ≈ 138.8 Wh. A 12 V/50
Ah battery paired with a 100–120 W solar panel is recommended to ensure 3 days of op-
eration under overcast conditions. Actuator nodes are not included in the above estima-
tion, as their power consumption depends on specific loads and must be calculated sepa-
rately for each application scenario. Table 4 summarizes the power consumption param-
eters and theoretical endurance estimates for each system component.
Table 4. Power consumption parameters and theoretical endurance estimates.
Component Supply Voltage Average Current Average Power Daily Energy Theoretical Endurance (12 V/10 Ah Battery)
Sensor node (single) 12 V ~41.5 mA (peri-odic avg.) ~497.9 mW ~11.95 Wh ~10 days
Data terminal gateway
(with 7” touchscreen) 12 V ~274 mA ~3.29 W ~79.0 Wh ~1.5 days (needs solar)
Actuator node — Depends on spe-cific device Not uniformly estimable Not uniformly estimable —
ESP32-S3 (Active/RF re-
ceiving) 3.3 V 95–97 mA — — —
ZigBee module (TX/RX/lis-
tening) 5 V 110 mA/21.5 mA — — —
4G Cat.1 module (E27 V) 12 V 13 mA (typical) ~0.156 W — —
7-inch serial touchscreen
(Taojingchi) 5 V ~530 mA (back-light on) ~2.65 W — —
Sensor module 5 V 30 mA (0.15 W) — — —
Buck converter (12 V → 5
V) — Quiescent ~2 mA @ 5 V — — —
(4) Summary of Power Supply Strategy
Based on the above estimation, for the 20 -day field trial, each sensor node (≈11.95
Wh/day, 239 Wh total) is recommended to be powered by a 12 V/10 Ah battery with a 20–
30 W solar panel; and the gateway (≈79.0 Wh/day, 1580 Wh total) by a 12 V/50 Ah battery
with a 60–100 W panel. This configuration supports continuous operation without manual
battery replacement. For long-term deployment, scale up battery and panel capacity pro-
portionally, or adopt a centralized power architecture. For large- scale networks (>10
nodes), extending the sampling interval to 5–10 min with deep sleep reduces average cur-
rent from ~41.5 mA to sub-10 mA, extending battery life to months.
3.3. Network Connectivity and Stability
The ZigBee network maintained connectivity among all five sensor nodes through-
out the 20 -day field deployment. Signal strength indicators remained stable, with RSSI
values ranging from −65 dBm to −72 dBm for nodes at varying distances from the gateway.
The 4G Cat.1 module maintained continuous connection to the OneNET cloud platform
during the 4 -h benchmark test ; however, intermittent outages (each lasting several
minutes) occurred during the 20-day field deployment. No data were lost, as the data ter-
minal buffered sensor data locally and retransmitted it after reconnection (Section 2.3.1).
Data upload to the cloud occurred within 1–2 s of reception at the gateway under normal
conditions, demonstrating adequate bandwidth for real-time monitoring.
3.4. Remote Control Reliability

AgriEngineering 2026, 8, 446 19 of 33

https://doi.org/10.3390/agriengineering8100446
The remote control function of the system operates through the mobile application,
which sends commands via the cloud platform to the data terminal, which then forwards
them through the ZigBee network to the target actuator nodes, where the relay on the
actuator module PCB drives the irrigation solenoid valve or ventilation fan. To evaluate
the end-to-end reliability of this link, phased control command tests were conducted.
(1) Baseline Performance Test
Under normal network conditions (good 4G signal and stable ZigBee links), the re-
search team first performed 20 benchmark control command tests (10 for irrigation and
10 for ventilation) as basic functional verification of the closed-loop control link. To further
assess long-term control reliability, the total number of test commands was expanded to
100 (50 for the irrigation pump and 50 for the ventilation fan), evenly distributed across
10 time slots over 3 consecutive days (approximately 3– 4 slots per day, covering early
morning, noon, evening, and night) to eliminate potential time-of-day effects on commu-
nication quality. All tests were conducted under normal network connectivity without
manual intervention. The test results are summarized in Table 5.
Table 5. Remote control command success rate and response time.
Actuator Type Total Commands Successful Success Rate Mean Response Time (s) Response Time Range (s)
Irrigation pump 50 49 98% 4.3 ± 0.8 3.1–6.2
Ventilation fan 50 47 94% 4.8 ± 0.9 3.4–6.8
Total 100 96 96% 4.6 ± 0.9 3.1–6.8
Among the 100 tests, 49 out of 50 irrigation pump commands succeeded, yielding a
98% success rate with a mean response time of 4.3 s (range 3.1–6.2 s). For the ventilation
fan, 47 out of 50 commands succeeded, achieving a 94% success rate, with a mean response
time of 4.8 s (range 3.4–6.8 s). The single irrigation failure occurred during an early even-
ing test on the first day; the three ventilation failures occurred during the midday test on
the second day, the early evening test on the second day, and the early morning test on
the third day, respectively. Investigation revealed that the irrigation failure and the first
two ventilation failures were caused by transient ZigBee network congestion, which led
to command packet retransmission timeouts; the third ventilation failure was traced to
communication link instability caused by signal quality fluctuations during the early
morning period, resulting in timeout after multiple retransmissions. The retransmission
mechanism automatically recovered in subsequent cycles without affecting long-term sys-
tem operation. Overall, the combined success rate across both actuator types was 96%,
with a mean response time of 4.6 s. All successfully executed commands completed the
end-to-end process from APP click to actuator action within 7 s, verifying the system ’s
control reliability under normal network conditions.
(2) Control Tests Under Communication Interruption and Weak Signal Conditions
To further evaluate the system’s closed-loop control robustness under non-ideal com-
munication conditions, two human-intervened test scenarios were designed.
Scenario 1: Control command test under 4G communication interruption. This test
simulated 4G network disconnection by disconnecting the antenna of the 4G module at
the data terminal. A total of 10 commands (5 for irrigation and 5 for ventilation) were
issued approximately 30 s after the 4G interruption. Results showed that all commands
failed to reach the actuators due to the downlink interruption from the cloud to the termi-
nal, resulting in a 100% command failure rate. Upon restoration of the 4G connection (an-
tenna reconnection, with cloud platform reconnection completed within approximately
15 s), the system automatically resumed command reception, and the buffered upstream

AgriEngineering 2026, 8, 446 20 of 33

https://doi.org/10.3390/agriengineering8100446
sensor data at the data terminal were automatically re-transmitted without data loss. This
test indicates that the system cannot receive remote control commands during 4G back-
haul interruption, but the local ZigBee network and actuator nodes remain fully f unc-
tional, and normal operation resumes immediately upon backhaul restoration.
Scenario 2: Control command test under weak ZigBee signal conditions. This test
simulated weak signal conditions by positioning the actuator node approximately 300 m
from the gateway, where the RSSI was measured at approximately −72 dBm (at the edge
of the signal coverage range, as shown in Table 7). A total of 10 commands (5 for irrigation
and 5 for ventilation) were issued under this condition. Results showed that 8 out of 10
commands succeeded (5 out of 5 for irrigation, 3 out of 5 for ventilation), yielding a success
rate of 80%, with a prolonged mean response time of 5.8 s (range 4.2–9.5 s). The two fail-
ures both occurred for ventilation fan commands, attributed to retransmission timeout of
ZigBee packets under weak signal conditions. It should be noted that in the actual deploy-
ment of this system, all nodes are positioned within 200 m of the gateway, with RSSI main-
tained above −65 dBm (well within the good signal range). The above 300 m test was con-
ducted only to evaluate system performance boundaries under extreme deployment con-
ditions. Within the normal deployment range (<200 m), the risk of control failure due to
weak signals is extremely low.
In summary, the remote control reliability of the system under normal deployment
conditions (stable 4G connectivity and ZigBee node distance <200 m) has been fully vali-
dated. Under communication interruption or extreme weak signal conditions, the system
maintains data integrity through local buffering and reconnection mechanisms; however,
remote control functionality is dependent on the backhaul link status and can only be
executed after network restoration.
3.5. Performance Analysis
With the basic functionality of the system verified, network performance was further
evaluated under different communication conditions, including single -node transmis-
sion, multi-node concurrent transmission, and long -range ZigBee communication tests.
Considering the inherent randomness of wireless communication caused by channel con-
tention, signal fluctuation, and environmental interference, repeated measurements were
conducted to quantify performance variability.
For latency and packet -loss evaluations, each configuration was tested through 10
independent experimental runs, with each run consisting of 100 consecutive transmission
cycles. The reported results are presented as mean ± standard deviation (SD), and the 95%
confidence intervals (CIs) were calculated using Student’s t -distribution based on the in-
dependent experimental runs (n = 10). Here, n represents independent test runs rather
than individual transmitted packets.
A key observation was the difference between single -node and multi-node commu-
nication performance. Table 6 summarizes the overall network performance under bench-
mark test conditions.
Table 6. System network performance under benchmark test conditions (mean ± SD, 95% CI).
Performance Parameter Measurement Result Measurement Method
Single-node latency 42.3 ± 6.1 ms (95% CI: 38.0–46.6 ms) 10 runs × 100 sequential transmissions
Multi-node latency (5
nodes) 238.0 ± 27.1 ms (95% CI: 218.6–257.4 ms) 10 runs × 5 nodes simultaneous transmission
4G connection stability 100% (no disconnection during bench-mark test) 4-h continuous MQTT monitoring
Remote control success
rate 96% (96/100 commands) 100 command tests under normal network condi-tions

AgriEngineering 2026, 8, 446 21 of 33

https://doi.org/10.3390/agriengineering8100446
Cloud upload delay 1.2 ± 0.3 s (95% CI: 1.0–1.4 s) Gateway timestamp vs. cloud reception timestamp
Overall packet loss rate 0.28 ± 0.11% (95% CI: 0.20–0.36%) (Transmitted packets−received packets)/transmit-ted packets
The single-node test achieved an average end-to-end latency of 42.3 ms, with a stand-
ard deviation of 6.1 ms, indicating stable communication under low network load. When
five sensor nodes transmitted simultaneously, the average latency increased to 238.0 ms ,
with a standard deviation of 27.1 ms. This increase was mainly attributed to packet colli-
sions and retransmission processes caused by the CSMA/CA-based ZigBee channel access
mechanism [22].
The overall packet loss rate remained at 0.28%, with a 95% confidence interval of
0.20–0.36%. The relatively narrow confidence interval indicates that the ZigBee network
maintained stable communication performance under the current deployment scale. The
cloud upload delay averaged 1.2 s, demonstrating that the 4G backhaul and cloud syn-
chronization process provided sufficient responsiveness for agricultural environmental
monitoring applications.
Table 7 presents ZigBee communication performance at different distances. Since the
maximum 500 m range was not measured within the 200 m2 experimental plot but rather
at an open area (line-of-sight, no obstruction) in Lianshan County, the gateway was fixed
at the origin, and the mobile sensor node was moved outward along a straight line in 50
m increments (10 test points from 50 m to 500 m). At each distance point, 500 packets were
transmitted to record average RSSI, packet loss rate, and latency. The results, summarized
as mean ± SD, establish the baseline maximum communication range of the ZigBee mod-
ule under ideal line-of-sight conditions, providing a reference for node spacing design in
future larger-scale deployments.
Table 7. ZigBee communication quality at different distances (mean ± SD).
Distance (m) RSSI (dBm) Packet Loss (%) Average Latency (ms)
50 −52.1 ± 1.2 0 ± 0 41.5 ± 3.8
100 −57.8 ± 1.5 0 ± 0 47.2 ± 4.1
200 −64.9 ± 1.8 0 ± 0 54.6 ± 5.2
300 −71.5 ± 2.1 0.18 ± 0.06 67.3 ± 6.4
400 −77.8 ± 2.5 0.75 ± 0.21 83.7 ± 8.9
500 −84.6 ± 3.0 2.05 ± 0.48 108.6 ± 11.3
The results show that RSSI decreased gradually with increasing distance, while
packet loss became noticeable beyond 300 m. The increasing variability at longer distances
reflects the reduced link margin under weaker signal conditions. Within the actual de-
ployment range (<200 m), all sensor nodes maintained reliable communication, with RSSI
values above approximately −65 dBm and negligible packet loss.
To further evaluate the influence of network scale on communication performance,
the actual field deployment of 5 sensor nodes was supplemented with sensor -less com-
munication-only emulation nodes (Ebyte E34 -2G4D20D modules) at the same experi-
mental site. These emulation nodes maintained the ZigBee network topology unchanged
and transmitted formatted 200-byte JSON packets at the same 30-s intervals as the actual
sensor nodes, without connecting any sensor probes, thereby isolating channel contention
and throughput bottlenecks under increased node density. Under this extended configu-
ration, different node configurations —including the 8 -node and 10-node cases reported
in Table 8—were tested under synchronized transmission conditions. For each configura-
tion, ten independent runs were conducted, and each run contained 100 transmission cy-
cles.

AgriEngineering 2026, 8, 446 22 of 33

https://doi.org/10.3390/agriengineering8100446
Table 8. Multi-node concurrent transmission performance test results. (mean ± SD, 95% CI).
Number of Nodes Latency (ms) 95% CI (ms) Packet Loss (%) Retransmissions
1 42.3 ± 6.1 38.0–46.6 0 ± 0 0 ± 0
3 126.0 ± 14.2 115.8–136.2 0.08 ± 0.03 0.25 ± 0.08
5 238.0 ± 27.1 218.6–257.4 0.28 ± 0.11 0.75 ± 0.22
8 315.0 ± 38.5 287.4–342.6 0.58 ± 0.19 1.15 ± 0.31
10 376.0 ± 45.2 343.6–408.4 0.98 ± 0.27 1.48 ± 0.39
The results demonstrate that increasing the number of simultaneously transmitting
nodes resulted in increased latency, packet loss, and retransmission frequency. This be-
havior is consistent with the characteristics of contention- based CSMA/CA communica-
tion, where multiple nodes compete for access to a shared wireless channel. For the actual
five-node deployment, the average latency remained at 238.0 ms, with a packet loss rate
of 0.28%, indicating reliable communication performance for environmental monitor ing
and routine agricultural control applications. However, the increased variability observed
under 8–10 node stress-test conditions suggests that additional communication optimiza-
tion strategies, such as TDMA-based scheduling, may be required for larger-scale deploy-
ments.
Taking into account the shortcomings of the existing CSMA/CA -based ZigBee com-
munication mechanism, we envision expanding our system by including MAC-layer op-
timization methods like time division multiple access (TDMA) to minimize channel con-
tention and enhance network scalability. Prior research has demonstrated how adaptive
scheduling strategies can significantly improve the efficiency of wireless sensor networks
in an agricultural environment [23].
3.6. AI Decision Support Evaluation
The AI-assisted decision support functionality was tested using a structured testing
protocol. We developed a set of 20 typical agricultural queries which covered four main
types: irrigation advice (e.g., “Does my perilla need watering right now?”), environmental
assessment (e.g., “Are the current conditions suitable for perilla growth?”), pest and dis-
ease inquiries (e.g., “The leaves are turning yellow, what could be the cause?”) and ferti-
lization guidance (e.g., “ When should I apply fertilizer at this stage?). Each query was
issued three times during different times of day (morning, midday, and evening, corre-
sponding to differing sensor readings), resulting in 60 test interactions overall.
Responses were evaluated against two quantitative criteria: (1) Factual Accuracy —
whether the response contained agronomically correct information, verified against the
agricultural knowledge base and published cultivation guidelines; and (2) Contextual Rel-
evance—whether the response explicitly referenced real-time sensor values and adapted
recommendations accordingly. All criteria were independently evaluated by two review-
ers, with disagreements resolved through discussion. To further validate the necessity of
dynamic data integration, an ablation test was cond ucted: the same 20 queries were re-
submitted with the real-time sensor data component removed from the prompt, and con-
textual relevance was re- evaluated under this condition. The results are summarized in
Table 9.
Table 9. Quantitative evaluation of AI decision support.
Evaluation Metric Value Measurement Method
Total Test Interactions 60 20 queries × 3 time points
Factual Accuracy 96.7% (58/60) Manual verification against agronomic references

AgriEngineering 2026, 8, 446 23 of 33

https://doi.org/10.3390/agriengineering8100446
Footnote: “Contextual Relevance” is defined as whether the response provides quantitative, situa-
tion-specific comparisons (e.g., “Current soil moisture is 55%, below the 60% threshold ”) and per-
sonalized actionable recommendations derived therefrom (e.g., “ Turn on irrigation for 10 min” ).
Generic agronomic heuristics (e.g., “Irrigate when soil moisture is low”) do not satisfy this criterion.
Among the 60 interactions, 58 yielded factually accurate responses; the two errors
involved outdated pest control recommendations, which were subsequently corrected
through knowledge base refinement. Contextual relevance was confirmed across all 60
interactions: every response incorporated current sensor readings, and the response con-
tent varied across the three time points in accordance with changing sensor values —for
instance, correctly determining that morning readings indicated no immediate need for
irrigation, while late afternoon conditions triggered an irrigation recommendation after a
full day of transpiration. In the ablation test, remov ing real-time sensor data from the
prompt caused responses to become generic (e.g., “Irrigation is recommended when soil
moisture is low”), and the contextual relevance rate dropped from 100% to 0%. This result
quantitatively confirms that dynamic sensor data integration is not merely an enhance-
ment but a necessity for actionable decision support —a distinction that has been largely
overlooked in prior agricultural chatbot studies.
To assess the accessibility and practical usability of the AI interaction paradigm, a
structured usability test was conducted with local farmers. An initial pilot test involving
30 participants (mean SUS score: 78.4 ± 9.5) confirmed the system’s basic usability.
To further validate robustness and demographic representativeness, the test was ex-
panded to 80 farmers (45 male, 56.2%; 35 female, 43.8%) recruited from Lianshan and sur-
rounding areas. The age distribution was skewed toward older groups (≤40: 27.5%; 41–60:
47.5%; >60: 25.0%), reflecting the current rural demographic reality in China. In terms of
education, 76.3% had middle school education or below, while 17.5% had high school and
6.2% held a college degree or above. Regarding digital literacy, 97.5% used s martphones
daily, and 81.2% had experience with common apps such as WeChat and short-video plat-
forms, yet only 15.0% had previously used agriculture- or data-monitoring-related appli-
cations.
Following a 10-min training session, participants completed three predefined tasks:
checking soil moisture, querying the AI assistant for irrigation advice and executing the
recommendation if applicable, and remotely turning off the irrigation pump. The ex-
panded test yielded a mean System Usability Scale (SUS) score of 77.6 ± 10.2, closely
matching the original 30-person sample mean of 78.4 ± 9.5, indicating good stability of the
original results.
Stratified analysis showed consistent usability across age groups (≤40: 81.3 ± 8.7; 41–
60: 77.1 ± 10.5; >60: 74.5 ± 10.8) and education levels (middle school and above: 79.8 ± 9.1;
primary school and below: 74.3 ± 11.2)—all exceeding the acceptable SUS threshold of 68.
A total of 93.8% (75/80) of participants completed all tasks without external assistance,
and the AI recommendation adoption rate among applicable cases was 81.8% (54/66). The
mean satisfaction score was 3.9 ± 0.9 out of 5. These results confirm that the natural lan-
guage-based AI interaction paradigm is accessible to farmers across diverse age, educa-
tion, and technical backgrounds, effectively lowering the barrier to data -driven agricul-
tural decision support.
These findings indicate that the API-based interaction paradigm is accessible to farm-
ers of all ages, educational levels, and technical backgrounds —including those who lack
Contextual Relevance (with sensor
data) 100% (60/60) Response references current sensor readings
Contextual Relevance (without sensor
data, ablation) 0% (0/20) Same queries with sensor data removed

AgriEngineering 2026, 8, 446 24 of 33

https://doi.org/10.3390/agriengineering8100446
prior digital experience in resource constrained rural settings—as the vast majority of par-
ticipants were able to complete the assigned tasks without prior expertise or extensive
digital skills. Further interface simplifications , such as enhanced voice-based interaction
or larger touch targets, will likely benefit the most vulnerable user groups.
3.7. AI Robustness Testing
In addition to the benchmark evaluation described above, a dedicated robustness as-
sessment was conducted on the DeepSeek API integration module to examine its reliabil-
ity when faced with anomalous inputs, missing data, and ambiguous queries under real-
istic agricultural scenarios.
(1) Response to Anomalous Sensor Inputs
Test cases were designed to cover multiple types of anomalous input scenarios, in-
cluding: physically impossible values (e.g., soil moisture >100%), contradictory parameter
combinations (e.g., soil moisture at 5% while air humidity at 95% with no rainfall record),
and extreme values exceeding sensor measurement ranges (e.g., CO2 concentration at 9999
ppm). The system ’s handling strategy is as follows: when sensor values are detected to
fall outside the physically reasonable range, the system prompts “Current sensor data is
abnormal; manual verification of instrument status is recommended” and declines to gen-
erate specific irrigation or fertilization recommendations; when physically contradictory
yet individually reasonable values are encountered, the system annotates the response
with “Some data inconsistencies detected; sensor deployment status should be prioritized
for inspection” while providing conservative recommendations based on trustworthy pa-
rameters. Across the 20 anomalous input test cases, the system achieved a reasonable re-
sponse rate (no misleading actionable recommendations generated based on anomalous
data) of 95.0% (19/20). The sole failure occurred when multiple inconsistent parameters
were input simultaneously; the system failed to identify all anomalies in the response but
still provided conservative recommendations through comprehensive assessment.
(2) Response to Ambiguous and Semantically Vague Queries
Test cases comprised 10 common ambiguous queries, such as “What should I do
now?”, “The crops aren’t growing well; what’s wrong?”. The system’s handling strategy
prioritizes extracting general management principles for the current growth stage from
the knowledge base while guiding the user to provide additional context. For example, in
response to “What should I do now?” , the system replies: “The crop is currently at the
seedling stage, and it is generally recommended to maintain soil moisture between 60%
and 80%. Current sensor data shows soil moisture at 72%, which is within the normal
range. If you have specific concerns (e.g., irrigation, f ertilization, or pest control needs),
please provide further details. ” Across the 10 ambiguous query tests, the reasonable re-
sponse rate was 90.0% (9/10). In one failure case, the system provided relatively specific
fertilization recommendations in response to “ crops are growing poorly ” without suffi-
ciently following up to obtain more complete contextual information.
(3) Degraded Operation Strategy Under Missing Sensor Data
To simulate scenarios of single-node offline, communication interruption, or partial
sensor failure that may occur in actual deployment, queries were submitted with individ-
ual data sources (soil temperature, soil moisture, air temperature/humidity) selectively
masked. Upon detecting missing data, the system’s processing workflow is as follows: (1)
explicitly indicates at the beginning of the response that “The following sensor data is
currently unavailable: [list of sensor names]”; (2) provides conditional recommendations
based on the remaining available data, for example, “Based on the current air temperature
(32 °C) and air humidity (45%), attention to soil moisture status is advised. However, soil
moisture data is temporarily unavailable, so irrigation requirements cannot be deter-
mined; manual sensor connection inspection is recommended ”; (3) for decision requests

AgriEngineering 2026, 8, 446 25 of 33

https://doi.org/10.3390/agriengineering8100446
that depend on missing data, the system explicitly declines to generate specific operation
commands and recommends manual verification. Across the 15 missing -data test cases,
the system correctly identified and reported missing fields in 93.3% (14/15) of c ases, and
the reasonable response rate (without generating misleading recommendations based on
incomplete data) was 93.3% (14/15). In one failure case, the system referenced a histori-
cally averaged value when soil temperature data was missing, without clearly distin-
guishing between current measured data and historical references in the prompt, indicat-
ing that the edge-side historical data caching mechanism requires further refinement un-
der extreme conditions. Table 10 summarizes the statistical results of the AI robustness
testing.
Table 10. Summary of AI robustness test results.
Test Category Number of Test Cases Reasonable Re-sponses Reasonable Re-sponse Rate
Anomalous sensor inputs (physi-
cally impossible values) 20 19 95.0%
Ambiguous and semantically
vague queries 10 9 90.0%
Missing sensor data 15 14 93.3%
Total 45 42 93.3%
3.8. Discussion
The results illuminate the comparative advantages of the proposed approach. At the
hardware level, field validation confirmed that the standardized interface PCB and on -
node edge processing maintained data integrity throughout the acquisition and transmis-
sion chain. Most sensor readings remained within manufacturer -specified accuracy
ranges, with air temperature MAE (0.36 °C) slightly exceeding the nominal ±0.3 °C. The
ZigBee network maintained stable connectivity throughout the 20-day deployment, while
the 4G backhaul was continuously connected during the 4-h benchmark test but experi-
enced intermittent outages during the extended field deployment; these outages caused
no data loss owing to local buffering and retransmission. Remote -control tests achieved
96% success under normal conditions and 80% under a weak-signal boundary test at 300
m. This source -level standardization fundamentally differs from the connector -based
translation approach proposed by Roccatello et al. [13], which still operates at the data
formatting stage. At the software level, the ablation experiment quantitatively demon-
strated that removing real-time sensor data from the prompt caused the contextual rele-
vance rate to drop from 100% to 0%, confirming that dynamic sensor data integration is a
necessity rather than an enhancement for actionable decision support.
Table 11 compares the proposed system with commercial platforms and recent aca-
demic systems.

AgriEngineering 2026, 8, 446 26 of 33

https://doi.org/10.3390/agriengineering8100446
Table 11. Comparison with commercial platforms and recent academic systems.
Aspect Agri-Synergy (This Work) Commercial A Commercial B Zhang et al. (2025) Sensors 2025 Edge-LSTM System Cloud-Connected LoRa WS (2025)
Communica-
tion ZigBee + 4G Cat.1 4G/GPRS 4G LoRa + 4G LoRaWAN LoRa
Max. Range 2000 m (ZigBee) Cellular cover-age Cellular cover-age 4000 m LoRaWAN wide-area LoRa long-range
Sensor Inter-
face
RS485/Modbus
(Standardized)
Multiple, non-
uniform
Multiple, non-
uniform
Multi-sensor fu-
sion IoT sensors T/H/soil/rain
Edge Pro-
cessing
ESP32-S3 + custom
PCB (CRC, unit con-
version, JSON)
None/limited None/limited STM32 + EC-IoT architecture Arduino Edge Control ESP32 edge com-puting
AI Support
DeepSeek LLM API +
KB + real-time sensor
data
None Custom (local deployment) Edge decision model LSTM predic-tion model AI predictive model
Local Dis-
play Yes (7″ touchscreen) None/limited None/limited Yes (WeChat mini-program) Not reported Yes (Web/mobile dashboard)
Hardware
Cost (per
node)
<$50 $150–200 $200–300 Not explicitly reported Not explicitly reported Not explicitly re-ported
Footnote: Commercial A and B refer to specific commercial IoT platforms from Shaoxing Tianjieyun
Intelligent Technology Co., Ltd. (Shaoxing, China) and Yantai Lanxian Electronic Technology Co.,
Ltd. (Yantai, China), respectively.
The per-node hardware cost of the proposed system is approximately 41 –46 USD,
representing only the bill-of-materials cost and excluding R&D amortization, volume dis-
counts, and installation labor. This is not directly comparable to the quotations from Com-
mercial Platforms A and B (150–200 USD and 200–300 USD, respectively), which already
include the vendor’s cloud platform access license, basic mobile application, and first-year
technical support, with additional cloud service or software subscription fees of approxi-
mately 10–50 USD per device per year charged from the second year onward. A fair com-
parison therefore requires clearly distinguishing the cost accounting scope.
The proposed system uses China Mobile ’s OneNET IoT platform as its cloud infra-
structure. OneNET provides free basic device access, first -year data storage, and a
monthly free message quota sufficient for the current 5 -node deployment, resulting in
zero cloud service cost. For larger deployment s (e.g., 50+ nodes), paid tiers (299 –2999
RMB/year) amortize to about 1–10 USD per node per year, far below commercial platform
fees. The DeepSeek LLM API costs approximately 0.002–0.005 USD per consultation, neg-
ligible under normal usage.
Even when cloud platform service costs are included, the system maintains a 3.3–4.9×
first-year cost advantage (41–46 USD vs. 150–300 USD). Over three years, commercial plat-
forms add renewal fees (10–50 USD per node per year), raising their total to 170–400 USD,
while the proposed system totals 41 –76 USD, yielding a 2.9 –5.4× advantage. For deploy-
ments exceeding 50 nodes, per-node cloud costs are further diluted, making the advantage
more pronounced; conservatively, the total lifecycle cost advantage is 3–5×.
Comparison with recent academic systems further highlights the distinctive position-
ing of this work. Zhang et al. (2025) developed a farmland smart irrigation system based
on EC-IoT and LoRa [24]. Although it achieves a longer communication range ( 4000 m)
than our ZigBee approach, its edge processing focuses on irrigation decision algorithms
and does not address hardware -level sensor interface standardization. The edge- LSTM

AgriEngineering 2026, 8, 446 27 of 33

https://doi.org/10.3390/agriengineering8100446
smart irrigation controller in Sensors (2025) similarly fails to resolve multi -source sensor
interface heterogeneity, and its AI is limited to LSTM prediction without natural language
interaction for farmers [25]. The Cloud -Connected LoRa Weather Station ( 2025) uses
ESP32 edge computing and LoRa with an AI predictive model for weather analysis and
early warning, but focuses exclusively on meteorological monitoring, lacking soil multi-
parameter sensing or actuator control [26].
The multi-node communication experiments revealed the influence of network con-
gestion on system scalability. When the number of simultaneously transmitting nodes in-
creased, both communication latency and packet loss showed an increasing trend. Specif-
ically, the latency increased from below 100 ms under single -node transmission to 200 –
500 ms during multi-node communication, while the packet loss rate increased to approx-
imately 0.28 ± 0.11% when five sensor nodes transmitted simultaneously (Tables 6–8).
This performance degradation is mainly related to the CSMA/CA (Carrier Sense Mul-
tiple Access with Collision Avoidance) mechanism adopted by ZigBee communication.
Under concurrent transmission conditions, multiple sensor nodes compete for access to
the shared wireless channel. This competition increases the probability of packet collisions
and retransmission requirements, resulting in additional communication delays . Similar
scalability limitations have been reported for contention-based IEEE 802.15.4 wireless sen-
sor networks, where increasing network load can increase delay and retransmission over-
head [27,28]. For the current experimental deployment consisting of five sensor nodes, the
measured communication performance remained within acceptable limits for environ-
mental monitoring and agricultural control applications. However, the observed perfor-
mance reduction when expanding the number of nodes indicates that further optimiza-
tion may be required for large-scale agricultural deployment.
Considering that the current limitation mainly originates from the communication
scheduling mechanism rather than hardware capability, a TDMA (Time Division Multiple
Access)-based scheduling strategy is proposed for future system expansion. In this ap-
proach, the ZigBee coordinator assigns dedicated transmission periods to individual sen-
sor nodes, thereby reducing competition for channel access and improving communica-
tion stability. The frame length can be expressed as:
𝑇𝑇frame = � (
𝑛𝑛
𝑖𝑖=1
𝑇𝑇slot + 𝑇𝑇guard) (1)
where 𝑛𝑛 is the number of nodes, 𝑇𝑇slot is the transmission duration per node (including
data packet and acknowledgment), and 𝑇𝑇guard is a guard interval to accommodate clock
drift.
For the current deployment with 5 nodes, assuming a 50-byte data packet transmitted
at 250 kbps, 𝑇𝑇slot ≈ 2.5 ms. With a guard interval 𝑇𝑇guard = 1 ms, the total frame length
𝑇𝑇frame = 5 × (2.5 + 1) = 17.5 ms, which would reduce the worst -case latency from the
current 245 ms (CSMA/CA) to under 20 ms under TDMA scheduling. This optimization
can be implemented through firmware modification without changing the existing hard-
ware structure. Previous studies have reported that MAC -layer optimization strategies
can improve communication efficiency in agricultural wireless sensor networks [23,27,28].
Therefore, the communication characteristics observed in this study provide a basis for
further investigating TDMA -based scheduling approaches in future large -scale deploy-
ments.
Notwithstanding these demonstrated capabilities, several limitations constrain the
generalizability of the current findings. First, the field test was conducted in the subtrop-
ical monsoon climate of Guangdong Province, where mild temperatures and abundant
rainfall favor system operation; performance under extreme conditions such as arid heat,
high-altitude cold, or heavy snowfall remains untested. Second, the validation covered a
200 m2 plot with only five sensor nodes, and signal degradation beyond 300 m (Table 7)

AgriEngineering 2026, 8, 446 28 of 33

https://doi.org/10.3390/agriengineering8100446
indicates that larger-scale or spatially dispersed deployments would require careful node
placement or additional relay infrastructure. Third, the electromagnetic environment at
the test site was relatively clean; performance in settings with competing 2.4 GHz sig-
nals—such as Wi-Fi networks or co- located ZigBee systems—requires further investiga-
tion. Fourth, the field trial was conducted over a limited duration in mid-to-late July, cov-
ering only the vegetative growth stage of perilla. The system’s performance across the full
growth cycle remains to be validated. We acknowledge this limitation and plan to conduct
extended trials spanning the complete growth cycle in future work.
An unanticipated observation from the field deployment was that the local display
on the data terminal proved particularly valuable for on -site troubleshooting during ini-
tial setup. This observation was particularly evident when an intermittent 4G disconnec-
tion lasting several minutes occurred during the trial (not benchmark test) : throughout
the interruption, the data terminal continued to receive and buffer sensor data via the
ZigBee mesh network, while the local display maintained real -time presentation of all
sensor readings and network status indicators. Upon 4G restoration, the buffered data
was automatically uploaded to the cloud using the built-in retry mechanism (retransmis-
sion threshold: 3 attempts over 60 s, as described in Section 2.3.1), with no data loss rec-
orded at the cloud database. This experience suggests that edge- side visualization, com-
bined with the terminal’s local caching and retransmission capabilities, provides a critical
operational fallback under weak or disconnected network conditions, and warrants fur-
ther exploration as a complementary interaction modality alongside the mobile applica-
tion.
The comparative analysis above demonstrates that Agri -Synergy exhibits clear ad-
vantages in hardware–firmware co-designed source-level standardization and AI-driven
natural language interaction. Its universal sensor PCB with RS485/Modbus interface pro-
vides a unified physical layer foundation for multi- source sensor access. This standard-
ized interface architecture not only resolves the heterogeneity issues among the various
commercial sensors deployed in the current system but also reserves technical flexibility
for the rapid integration of emerging sensing elements in the future.
3.9. From Multifunctional Sensing to Autonomous Closed-Loop Management
Recent work has demonstrated an InSe -based bifunctional sensor capable of high -
sensitivity NO2 detection and temperature sensing over a broad range of 25–150 °C within
a miniaturized multiparameter sensing platform [29]. The sensor was further integrated
into a portable intelligent monitoring system incorporating signal acquisition, processing,
and alarm functions, demonstrating the potential of emerging multifunctional sensors for
compact environmental monitoring applications. For future integration into Agri -Syn-
ergy, such sensing devices could be adapted through appropriate signal-conditioning, cal-
ibration, packaging, and an RS485/Modbus -compatible interface module, allowing them
to be incorporated into the existing standardized sensor-node architecture. Similar poten-
tial is offered by functionalized carbon nanotube sensor arrays, which provide low-power,
ppb-level detection of NO2 and O3 [30].
Building on this sensing foundation, the longer -term evolution of Agri -Synergy is
oriented toward fully autonomous intelligent agricultural management, in which the sys-
tem completes the entire sensing–analysis–decision–action cycle without human interven-
tion. This evolution can be structured along four progressive dimensions. First, at the
sensing foundation layer, the standardized interface already offers a plug-and-play path-
way for integrating emerging multifunctional sensors, as illustrated above. Second, at the
computational layer, edge AI inference offloading will complement the cloud -based
DeepSeek LLM: lightweight Edge- AI models deployed on resource- constrained devices
such as ESP32 -S3 can support real -time local inference and millisecond-level anomaly

AgriEngineering 2026, 8, 446 29 of 33

https://doi.org/10.3390/agriengineering8100446
detection [31], forming a hierarchical “end–cloud collaborative” architecture in which the
edge handles real -time rules and the cloud retains complex semantic reasoning, global
optimization, and natural language interaction. Third, at the decision optimization layer,
digital twin modeling can use long-term historical data to train LSTM or Physics-Informed
Neural Networks for rolling predictions of soil moisture trends and frost risk indices, sup-
porting “what-if” analyses before field execution. Fourth, at the target layer, closed- loop
autonomous control based on AI recommendations represents the ultimate convergence
point. The current system operates at the “human-in-the-loop” stage; future machine au-
tonomy can adopt a hierarchical confidence-driven mechanism: (1) high-confidence deci-
sions (e.g., confidence >95%) are executed automatically and reported for post hoc review;
(2) medium-confidence decisions (80 –95%) are recommended first, with a default com-
promise executed after a configurable timeout if no response is received; and (3) low-con-
fidence decisions (<80%) require mandatory manual confirmation; a comparable confi-
dence-based arbitration mechanism has b een demonstrated in an integrated RAG -
LLM/DQN control system, where low -confidence or conflicting outputs trigger safe
fallback or expert override [32]. By advancing along the pathway of sensing expansion,
edge offloading, twin optimization, and autonomous closed loop, a truly autonomous de-
cision-making and execution-capable smart agricultural management system is expected
to be realized within the next three to five years.
4. Conclusions
This paper presented Agri-Synergy, a hybrid IoT system that addresses two persis-
tent challenges in smart agriculture —sensor data heterogeneity and barriers to effective
AI-driven decision support—through a hardware–software co-design approach.
At the hardware and firmware level, the system introduces a universal sensor inter-
face based on the RS485/Modbus standard, enabling heterogeneous agricultural sensors
to be integrated through a unified architecture. By moving protocol adaptation, CRC val-
idation, unit conversion, and data formatting from the cloud layer to the edge layer, the
proposed approach eliminates data heterogeneity at the source and improves interopera-
bility among diverse sensing devices. Field validation in a 200 m 2 perilla plot with five
sensor nodes and two actuator nodes confirmed that most sensor measurements remained
within manufacturer-specified accuracy ranges, with the air temperature MAE (0.36 °C)
slightly exceeding the nominal ±0.3 °C, demonstrating that the standardized interface and
edge processing pipeline preserved data integrity throughout acquisition and transmis-
sion.
At the communication level, the hybrid ZigBee/4G network achieved reliable perfor-
mance, with single-node latency of 42.3 ms, five-node concurrent latency of 238.0 ms, and
packet loss below 0.5%. Multi -node stress tests further characterized the impact of n et-
work density, providing a basis for future scaling.
At the software and AI interaction level, the proposed low -cost AI-assisted decision
support framework integrates real -time sensor data, agricultural knowledge resources,
and the DeepSeek LLM API without local model deployment. Structured evaluation
showed 96.7% factual accuracy and 100% contextual relevance, while usability testing
with 80 farmers yielded a mean SUS score of 77.6, confirming that the natural language
interaction mechanism lowered the technical barrier for accessing data-driven guidance.
The system also achieves a 3–5× cost reduction compared with commercial platforms
while providing additional AI-driven interaction capabilities.
In summary, the contribution of this work is twofold and mutually reinforcing: at the
hardware–firmware layer, the universal sensor PCB with RS485/Modbus interface and on-
node edge processing addresses sensor interoperability at the source; at the software
layer, the DeepSeek API -based AI interaction paradigm improves accessibility to

AgriEngineering 2026, 8, 446 30 of 33

https://doi.org/10.3390/agriengineering8100446
intelligent agricultural decision support. Together, these contributions provide a flexible
and low-cost framework for advancing digital transformation in smart agriculture.
Although the proposed Agri -Synergy system has demonstrated feasibility through
field deployment and comprehensive functional evaluations, several limitations remain.
First, the current validation was conducted in a 200 m 2 plot with only five nodes; larger-
scale deployments are needed to evaluate network scalability and communication robust-
ness. Second, the field trial covered only a short duration and a single crop growth stage;
long-term experiments across full growth cyc les and seasonal variations are required.
Third, the electromagnetic environment was relatively clean; performance under 2.4 GHz
interference from Wi-Fi or co-located ZigBee systems requires further investigation.
Author Contributions: Conceptualization, M.W. and L.L.; methodology, L.D. and L.L.; software,
L.D., Y.C., Y.Z., L.L. and J.Y.; validation, L.L. and Y.Z.; formal analysis, L.D., Y.C. and J.Y.; investi-
gation, J.Y., L.L. and Y.Z.; resources, M.W.; data curation, L.D. and L.L.; w

论文原文与出版信息

AgriEngineering
查看论文原文

继续探索