Next Article in Journal
Fabrication and Characterization of Flexible Capacitive Humidity Sensors Based on Graphene Oxide on Porous PTFE Substrates
Next Article in Special Issue
Landmark-Assisted Compensation of User’s Body Shadowing on RSSI for Improved Indoor Localisation with Chest-Mounted Wearable Device
Previous Article in Journal
Influence of Human Factors on Cyber Security within Healthcare Organisations: A Systematic Review
Previous Article in Special Issue
SEMPANet: A Modified Path Aggregation Network with Squeeze-Excitation for Scene Text Detection
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Monitoring Soil and Ambient Parameters in the IoT Precision Agriculture Scenario: An Original Modeling Approach Dedicated to Low-Cost Soil Water Content Sensors

1
Dipartimento di Ingegneria, University of Perugia, 06125 Perugia, Italy
2
Dipartimento di Ingegneria Civile e Ambientale, University of Perugia, 06125 Perugia, Italy
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(15), 5110; https://doi.org/10.3390/s21155110
Submission received: 12 June 2021 / Revised: 20 July 2021 / Accepted: 26 July 2021 / Published: 28 July 2021
(This article belongs to the Special Issue Wireless Sensing and Networking for the Internet of Things)

Abstract

:
A low power wireless sensor network based on LoRaWAN protocol was designed with a focus on the IoT low-cost Precision Agriculture applications, such as greenhouse sensing and actuation. All subsystems used in this research are designed by using commercial components and free or open-source software libraries. The whole system was implemented to demonstrate the feasibility of a modular system built with cheap off-the-shelf components, including sensors. The experimental outputs were collected and stored in a database managed by a virtual machine running in a cloud service. The collected data can be visualized in real time by the user with a graphical interface. The reliability of the whole system was proven during a continued experiment with two natural soils, Loamy Sand and Silty Loam. Regarding soil parameters, the system performance has been compared with that of a reference sensor from Sentek. Measurements highlighted a good agreement for the temperature within the supposed accuracy of the adopted sensors and a non-constant sensitivity for the low-cost volumetric water contents (VWC) sensor. Finally, for the low-cost VWC sensor we implemented a novel procedure to optimize the parameters of the non-linear fitting equation correlating its analog voltage output with the reference VWC.

1. Introduction

In recent years, the rapid development and broad application of the IoT (Internet of Things) concept pushed towards the improvement of best practices in Wireless Sensor Networks (WSNs) [1] in Precision Agriculture (PA) applications, also relevant to Greenhouses [2,3]. Smart, cheap, and powerful connected sensor nodes (things) are transforming from stand-alone devices to parts of collaborative systems [4,5]. Data are stored, aggregated, and analyzed to improve the precision of temporal-spatial parameters on croplands [6,7]. WSN could be made of simple and cheap components: the results provided by complex technology systems are not necessarily significantly better than the results derived from a combination of descriptive statistics and simple sensors: intrinsic limitations of the sensing element could be overcome [8] also providing the measurement readout in a digital format [9].
Currently, the sensor networks that characterize the IoT technology have the main purpose of collecting data from the surrounding world on intelligent systems for environmental applications [10,11]. Additionally, in cloud computing approaches, the collected data are analyzed, processed, and used to undertake the correct decisions to optimize natural resources: it follows that the set of sensors, devices, and storage systems, by which the IoT is composed, is very similar to a huge, distributed measurement system, as clearly outlined in [12]. The management of such complex systems is part of the present Big Data paradigm. Details on sampling techniques, distributed smart monitoring, and mathematical theories of distributed sensor networks can be found in [1,13].
In [14] the authors made a very good literature review on the use of machine learning (ML), a subset of artificial intelligence having a considerable potential to handle numerous challenges in the establishment of knowledge-based farming systems. In the paper, the authors considered four main generic categories of applications: crop, water, soil, and livestock management. In the paper the authors underlined also that (i) the majority of the journal papers focused on crop management [15,16]; (ii) several ML algorithms have been developed to handle the heterogeneous data coming from agricultural fields [17]; (iii) multispectral or RGB images constituted the most common input for ML algorithms, thus justifying the broad usage of Convolutional Neural Networks due to their ability to handle this type of data more efficiently [18,19]. Moreover, a wide range of parameters regarding the weather as well as the soil, water, and crop quality was used. The most common means of acquiring measurements for ML applications was remote sensing, including imaging from satellites, unmanned vehicles (both ground (UGV) and aerial (UAV)), while in situ and laboratory measurements were also used [20].
Very good reviews of the most common sensors used in agriculture applications are reported in [21,22]. In [23], agricultural sensors have been divided into three main classes: physical property type sensors, biosensors, and micro-electro-mechanical system (MEMS) sensors. Near and remote sensing techniques use IoT sensors for monitoring multiple parameters, such as soil water content, temperature, and pH level, air humidity, temperature, light, and pressure [23,24,25,26]. The determination of soil water content is a subject of great value in different scientific fields, such as agronomy, soil physics, geology, soil mechanics, and hydraulics. Physical, mineralogical, chemical, and biological properties are also involved. Moreover, soil water content measurements could be affected by soil temperature [27]. Ambient Relative Humidity (RH) affects leaf growth, photosynthesis, pollination rate, and finally crop yield. A prolonged dry environment or high temperature can make the delicate sepals dry quickly and cause the death of flowers before maturity. Hence it is very crucial to control air humidity and temperature. Recent technological advances have enabled real-time sensors to be used directly in the soil, wirelessly transmitting data without the need for human intervention. It is now possible to set up a large number of low-cost devices not only capable of transducing a physical quantity of interest but also of performing some post-processing on raw data to extract useful information, fully complying with current regulations [27,28,29]. Due to the rapid advancement of technologies, the size and the cost of sensors have been reduced, making WSN the foremost driver of PA [30].
While most previously cited parameters (including soil temperature) can reliably be monitored through low-cost sensors available in the market, the experimental and accurate determination of soil water content with low-cost sensors is still an issue. A summary of state of the art on soil water content measurement techniques has been reported in [31]. The prices of the most reliable soil water content sensors range between USD 150 and USD 5000, thus positioning these sensors far from the IoT world. Instead, the reliability of very low-cost soil water content sensors easily purchasable in the worldwide internet market is still a matter of scientific debate [8,32,33,34,35,36,37] as further highlighted in the next sections.
In this scenario, the objectives of the present work can be summarized as follows:
  • Acquisition of basic physical parameters of plants and ambient with low-cost sensors: soil water content and temperature, greenhouse ambient RH, temperature, and light. Even if the present paper will mostly be focused on soil water content and most parameters will not be discussed, the availability of multiple parameters could be exploited in the future to build a more intelligent system by using machine learning algorithms.
  • Availability of a modular system built with cheap off-the-shelf components also providing capabilities for automation and management of plant irrigation.
  • Comparison of the performance of a very low-cost soil moisture sensor with a commercially available expensive system using two different types of soil with an original modeling approach which helps us to compare measurement results taken at different soil depths.

2. IoT Architecture in Precision Agriculture Scenario

2.1. Water Waste and Agriculture

The integration of information and control technologies in agriculture processes is known as Precision Agriculture. To obtain the greatest optimization and profitability PA adapts common farming techniques to the specific conditions of each point of the crop, by applying different technologies: micro-electro-mechanical Systems, Wireless Sensor Networks (WSN), computer systems, and enhanced machinery. PA optimizes production efficiency, increases quality, minimizes environmental impact, and reduces the use of resources (energy, water) [38].
The application of IoT allows farmers to boost the production process through plantation monitoring, soil and water management, irrigation scheduling, fertilizer optimization, pest control through chemicals as herbicides, delivery tracking. These tasks can be accomplished by using data from sensors, images, agricultural information management systems, global positioning systems (GPS), and communication networks. This integration results in the optimization of scarce resources [39].
Atmospheric changes and, in particular, the sudden rise in temperatures worsen the problem of searching for fresh water and water storage resources [40]. These problems are exacerbated in countries characterized by drought and rare rainfall, where the difficulty in finding the raw material prevents the development of crops (e.g., the California drought [41]). The scarcity of water in some regions of the world has led farmers to re-evaluate conventional agricultural methods to reduce waste. To this purpose, innovative systems and methods aimed at PA are needed, where sensor technology, electronic and communication engineering, and farming machinery are blended with cloud storage and computing. If on one hand, there is a tendency to optimize traditional irrigation systems using intelligent drip systems [42,43,44], on the other hand, systems and sensors [8] are sought to measure the soil water content in real-time [45]. In this way, it is possible to know the exact time and the specific position of soil that requires irrigation. However, regardless of all the advances in the IoT domain, the adoption of PA has been limited to some developed countries. Because of the lack of resources, remote sensing-based techniques to monitor crop health are uncommon in developing countries, thus resulting in a loss of yield. [25]
The development of WSN applications in PA makes it possible to increase efficiency, productivity, and profitability in many agricultural production systems while minimizing unintended impacts on wildlife and the environment. The real-time information obtained from the fields can provide a solid base for farmers to adjust strategies at any time. Instead of making decisions based on some hypothetical average conditions, which may not exist anywhere, a precision farming approach recognizes differences and adjusts management actions accordingly [46].
The combination of WSN, which are cheaper to implement than wired networks [29], with intelligent embedded systems and applying on this combination the technology of ubiquitous systems [40], leads to the development of the design and implementation of low-cost systems for monitoring agricultural environments, suitable for developing countries and difficult access areas.

2.2. IoT Architectures

Wireless Sensor Networks (WSNs) have extensively been adopted in agriculture [47] as well as in livestock farming [48] due to installation flexibility especially when wireless transmission introduces a significant reduction and simplification in wiring and harness [30,49]. In addition, greenhouse technology profits from this technology through automation and informatization. In [46] an intelligent system, controlling and monitoring greenhouse temperature has been described, aiming at reducing consumed energy while maintaining good conditions that improve productivity. A review of the common wireless nodes and sensors capturing environmental parameters related to crops in the agriculture domain is reported in [29]. Agriculture in the Internet era is quickly becoming a data-intensive industry. Farmers need to gather and evaluate a massive amount of information from meteorological and physical sensors to increase production efficiency [50]. In [51] a description of a modular IoT architecture for several applications including but not limited to healthcare, health monitoring, and PA is reported. All the proposed subsystem choices used in that research are cheap off-the-shelf components with open-source software libraries.

2.3. Radio and Wireless Protocols in PA

The goal of optimizing water use for crops leads also to the development of automated irrigation systems. In [52] wireless sensors are linked by ZigBee radio transceivers, implementing a WSN where soil water content and temperature data are transferred. The wireless information unit also features a GPRS module that connects to a web server via the public mobile network. An online graphical application through Internet access devices allows operators to remotely monitor the information data. The feasibility of the implemented automated irrigation system was demonstrated. However, the total cost was high for some applications. The cost of each wireless sensor unit was ∼USD 100, whereas the wireless information unit cost was ∼USD 1800.
In addition to ZigBee, the IoT world is pushing new technologies. The Long-Range (LoRa) technology, originally developed for IoT, is investigated in [10] to demonstrate its use for implementing Distributed Measurement Systems. The LoRa wireless technology is designed for sending small packets at a low data rate (0.3–5.5 kbps) at relatively long distances. The protocol can be used in IoT nodes where energy efficiency is considered the most critical parameter.
The LoRaWAN™ protocol exploits the unlicensed radio spectrum in the Industrial, Scientific, and Medical band. Operating frequencies (433 MHz, 868 MHz, or 915 MHz) depend on the particular geographical region. Formally, LoRaWAN™ is a member of the low power LPWAN family, i.e., WAN wireless communications that are designed to minimize the power consumption while covering large areas but offering a relatively small bit rate. The specification defines the device-to-infrastructure of LoRa physical layer parameters and the LoRaWAN™ protocol. The LoRa physical layer or PHY exploits a Chirp Spread Spectrum (CSS) modulation. Fundamental keywords are low power transmission, low throughput, and optimum coverage. The LoRaWAN™ network architecture is deployed in a star-of-stars topology in which gateways relay messages between end-devices and a central network server. The gateways are connected to the network server via standard IP connections and act as a transparent bridge, simply converting RF packets to IP packets and vice versa [53].
LoRa is having success, as confirmed by the high number of papers adopting it (see e.g., [54,55,56,57,58] and references therein). The LoRa alliance sponsors the integration of LoRaWAN™ into the IoT, and some open implementations of network servers are available helping the constant growth of the LoRaWAN™ ecosystem. A fairly complete analysis of the scalability of networks based on LoRaWAN™ is reported in [58]. Employing analytic and simulation-based approaches, the authors explore the dimensions of the LoRa network configuration. The chosen spreading factor, a parameter directly related to the bitrate of the LoRa message, significantly depends on the number of sensors deployed in the field and on the transmission rate, given in packets/day.

3. System Architecture

The modular design of the proposed approach splits the architecture into different layers (Figure 1): (i) wireless nodes (encompassing sensors, actuators, low-power embedded processor, battery), (ii) internet gateway/concentrator, and The Things Network (TTN) [59], a worldwide open-access LoRaWAN™ network, (iii) uplink and downlink connection, database applications, and user interface placed in a virtual machine in the cloud. Our layer structure is a simplified version for what is reported in [23] where our layer “i” corresponds to the perception layer, layer “ii” merges the network and the middleware layers, while our layer “iii” combines the common platform and the application layers. Details on the different blocks of Figure 1 will be given in the following sections.

3.1. Nodes

Two basic wireless nodes have been envisaged, each one equipped with Semtech SX1272 LoRa Radio: “Greenhouse Node” and “Plant Node”. A single “Greenhouse Node” is needed for a greenhouse. Instead, every plant to be monitored will feature a “Plant Node”.
Both node types share the same structure (Figure 2a), i.e., (1) low power, ARM-based STM32L152RE microcontroller hosted in a NUCLEO_L152RE board, (2) chirp spread spectrum SX1272 LoRa Radio, and (3) sensor shield.
The sensor shield of the Greenhouse Node (Figure 2b) provides the connections to (1) a Si7021, a common and widely used RH and temperature sensor, (2) a Photoresistor for light detection, and (3) a 4.8 V battery.
The Plant Node is dedicated to measuring the fundamental parameters of the soil, i.e., soil water content and soil temperature, and to soil watering. Its dedicated shield (Figure 2c) hosts a BD6212HFP H-bridge used for driving a bistable solenoid valve and a power feed interconnection to turn the sensors on and off. Moreover, it is connected to (1) a TMP36 or an LM35 temperature sensor, (2) a “Capacitive Soil Moisture Sensor v1.2” for measuring water content, (3) a bistable solenoid valve, and (4) a 4.8 V battery. Finally, it includes a 1 MΩ shunt resistor useful to correct a fabrication defect of the batch of sensor we received.
It is worth giving some details here on the design choices of this Plant Node. The use of an H-bridge and a bistable valve greatly helps in minimizing power consumption, as the valve will drain current only during switching. Power supply for temperature and water content sensors was delivered through the GPIOs of the microcontroller to feed the sensors only when a measurement must be accomplished. In fact, the maximum allowed current delivered by the GPIOs of the STM32L152RE microcontroller is more than enough for the low power sensors we adopted. However, it must be pointed out the present version of the system is designed to provide maximum flexibility and is not conceived for power optimization. For example, the STM NUCLEO boards still include the ST-LINK/V2-1 programming and debugging tool, whose power consumption is way larger than that of the main STM32L152RE microcontroller.
Several plant nodes have been manufactured (Figure 3). After some design steps, the present version of the Plant Node is composed of (i) a waterproof junction box (including all electrical and electronic components) connected with (ii) a 3D printed PET-G shell which protects the soil sensor and the temperature sensor.
Regarding the soil water content sensor, most papers presented in the literature either measure the capacitance of the soil, which, of course, depends on the water content, or adopt high frequency (around 100 MHz) AC measurements to characterize the dielectric constant of the soil [58]. Other papers describing low-cost IoT nodes adopt fork-like metallic sensors that, when used with a DC bias, mainly characterize the ionic content of the soil by measuring the electrical resistance between the two arms of the fork. AC could also be used with fork-like sensors to limit electrolysis and consequent metal electrode etching/degradation and DC ion currents in the soil. Examples can be found in GardenBot literature [60] or [27] and references therein.
For this prototype of the system, we use the commercial, blade-shaped, “Capacitive Soil Moisture Sensor v1.2” (also dubbed SKU: SEN0193 in its version 1.0 by DFROBOT [61]) for sensing water content in the soil. This sensor is undoubtedly the least expensive water content sensor in the market and was also exploited in other scientific papers (see for example [32,33]) and well-documented internet projects [62]. In [32] the authors found that this sensor did not perform acceptably in predicting soil moisture content in a laboratory soil mixture prepared by mixing organic-rich soil and vermiculite, while it can estimate soil water in gardening soil in the so-called “field capacity” range. In [33] the author linearly correlates the voltage provided by the sensor reading to the gravimetric moisture approximations, providing an effective relationship between the reading from the capacitive sensor and the water content in the soil. This calibration procedure demonstrated that low-cost capacitive-type soil moisture sensors are capable of predicting the water content in soils to a high degree of accuracy, with little required outside of the device itself, which is in direct contrast to the time it takes to traditionally measure the water content in soils.
Being that the water content sensor is the hearth of our plant nodes and since a detailed data sheet is not available for the sensors, an accurate study of the sensor electronics was initially accomplished to get acquainted with the operation of the sensors [8]. A low dropout 3.3 V voltage regulator (omitted in a very recent version–v1.2 and v2.0–of this sensor) feeds a TL555I CMOS timer (Figure 4) which generates a trapezoidal waveform in astable mode running at about 1.5 MHz. The trapezoidal shape is because the operating frequency of the timer is pushed beyond the physical limit for the TL555I device, specified in the datasheet as guaranteed for 1.2 MHz in astable mode. On the other hand, the non-steep rising and falling edges of the waveform help in minimizing the electromagnetic interference possibly generated by the sensor and would be beneficial in the case of “CE” or “FCC” compliance certification.
The trapezoidal waveforms of nine sensors (S1, S2, S5, S6, S7, S9, S10, S13, and S14) were initially characterized to assess their uniformity. We discarded sensor S1 since its measured frequency f and duty cycle DC (1.22 MHz and 37.12% respectively) were very far from the average operating frequency and duty cycle of the other eight sensors (1.53 MHz and 34.48%, with sample standard deviations of 1% and 2.2%, respectively) [8], as reported in Table 1.
After this initial screening of the available samples of Capacitive Soil Moisture Sensor v1.2, we are confident that the measurement results of a single sensor chosen among other homogeneous samples represent the expected behavior of the whole family “S2, S5, S6, S7, S9, S10, S13, and S14”.
The TL555I timer supplies a passive circuit shown in Figure 4, composed of a first stage where the coplanar capacitor of the sensor Cprobe is low-pass connected with a 10 kΩ resistor. Then a peak detector provides the analog output signal that we acquire through the ADC of the microcontroller. Regarding sensor settling time, in [33] it was asserted this sensor should settle in 1–5 min, depending on the saturation level of the soil and how well the wet soil was mixed. We accomplished measurements with the Capacitive Soil Moisture Sensor v1.2 immersed in tap water and found that the output voltage could take up to one hour to reach the regime value. This could be due to a non-complete waterproofing of the sensor materials that likely incorporate water molecules. Therefore, the behavior of the Capacitive Soil Moisture Sensor v1.2 after initial watering could not be completely reproducible.
We underline that other more documented and reliable but also more expensive blade-shaped moisture sensors have been commercialized. Examples are the dielectric capacitance sensors ECH2O probe (Decagon Devices, Inc. Pullman, WA USA, now discontinued [63,64]) and the PROBE sensor [65], then modified to SMT100 ring-oscillator sensor (Truebner GmbH, Neustadt, Germany [66]) operating at approximately 150 MHz in water and 340 MHz in air.
A worst-case estimation of the overall cost of our plant node is roughly USD 60, where the most impacting figures are the microcontroller board and the LoRa shield.

3.1.1. Soil Volumetric Water Content Fitting Equations

Water content measurements were previously accomplished in silica sandy soil with the Capacitive Soil Moisture Sensor v1.2 in conditions such that the dry unit weight γ d r y = W s / V ( W s = dry soil weight, V = total volume of the soil) could be assumed as a constant [8]. It was demonstrated that this condition guarantees a monotonically decreasing Vs output voltage as a function of gravimetric water content (GWC), which was approximated using a 2nd order polynomial or an exponential function. In this paper, we will deal with volumetric water content (VWC) instead of GWC. However, the two parameters are proportional to each other for a given soil where the dry unit weight is constant. In the remainder of this paper, we will use the following exponential fitting equation between the output voltage Vs of the Capacitive Soil Moisture Sensor v1.2 and the VWC:
V s = A exp ( VWC B ) + C ,
VWC = B   ln ( A V s C )
being A, B, and C suitable constants. Other fitting equations were also adopted in the literature for the same sensor. In [32] a 3rd order polynomial function VWC = f(Vs) was implemented. In [33] the following equation was used:
VWC = P V s Q
being P = 2.48 V and Q = 0.72 for a soil composed of dried coconut coir. In the remainder of this paper, we will mainly deal with fitting Equations (2) and (3).

3.1.2. Embedded Software Implementation of Nodes

The C++ code exploits ARM Mbed OS libraries. Mbed OS is an open-source Real-Time Operating System (RTOS) for the creation and deployment of IoT devices based on ARM processors. The code structure is outlined in Figure 5 for the case of the Plant Node.
The heart of the firmware is the main.cpp file. The header of main.cpp includes Mbed libraries (e.g., EventQueue.h) and LoRaWAN™ libraries. In particular, LoRaWANInterface.h encompasses the prototypes of the member functions managing the upper level of the LoRaWAN™ protocol stack, lorawan_data_structures.h includes LoRaWAN parameters, e.g., network and application key, datarate, duty cycle, antenna gain, buffer size, and SNR while lora_radio_helper.h regards the physical layer and selects the type of shield adopted in our system. The functions of main.cpp dedicated to the Plant Node are listed in the lower part of Figure 5. Among them, we cite the lora_event_handler() which manages the state machine of the LoRa events, the measuring functions for water content (measure_SoilWC()) and temperature (measure_Temp()), and the LoRa send and send_message() and receive_message() functions. The receive function also handles the bistable irrigation solenoid valve. In the case of the Greenhouse Node, the actual measuring functions regard ambient RH, temperature, and the ambient luminous flux.
Every node transmits a packet conforming to the structure defined in Figure 6. Depending on the node type (plant or greenhouse node), it will include different values. For example, the Plant Node features node type = 1 and transmits soil water content and temperature, while the greenhouse node is characterized by node type = 0 and transmits ambient RH, temperature, and light intensity.

3.2. The Things Network and Connection to the LoRaWAN™ Gateway

Routing and processing procedures of the LoRaWAN™ network are managed by The Things Network (TTN), acting as an active crossroad between the gateway and the application. For our application, we extensively use the TTN, a network server whose aim is building a global, worldwide open LoRaWAN™ network. They provide a set of open tools and a global, open network to build an IoT application at low cost, featuring maximum security and ready to scale. A secure and collaborative Internet of Things network is built through robust end-to-end encryption, spanning many countries around the globe. A network server does the complicated part in creating a LoRaWAN™ network (handling duplicate packets from multiple gateways, shunting data to servers, handling joins, etc.).
As shown in Figure 1, in the network architecture The Things Network is located between the LoRa concentrator/gateway and the applications. TTN is composed of three main structures: Router, Brokers, and Handler. The Router is in charge of managing the gateway’s status and of planning transmissions. Each Router is associated with one or more Brokers. The assignment of Brokers is to map a device to an application, to forward uplink messages to the proper application, and to forward downlink messages to the correct Router-Gateway path. A Handler is responsible for treating the data of different Applications. To do so, it deals with a Broker where it registers devices and applications. The Handler is also in charge of encrypting and decrypting data.
In our system, the Uplink connection to TTN is carried out by the Radio SW of the gateway (Figure 1) that publishes the node sensor data on a specific uplink topic of the TTN MQTT broker using an internet connection.
Then, through the well-known flow-based programming tool Node-RED [67] running on the Gateway, a specific device is allowed to communicate with the database installed in the virtual machine, as sketched in Figure 1.
The Node-RED flow is composed of two sub-flows, an uplink, and a downlink flow, respectively (Figure 7a).
The uplink sub-flow, after subscribing to the same uplink topic of the TTN broker, is in charge of:
  • Retrieving through the internet the data received and published by the TTN broker exploiting the light blue TTN Uplink Node producing an output Node.js buffer;
  • Converting this Node.js buffer to a string;
  • Parsing this string by exploiting two function nodes featuring JavaScript codes, dedicated to Water Content and Temperature, respectively, which also compose the query for the database;
  • Sending the query to the MySQL database running on the Virtual Machine through a dedicated TCP port (internet connection through MySQL 3306 port) employing the orange node.
Moreover, in the second Node-RED sub-flow the application is allowed to transmit downlinks to TTN (i.e., to the device) when the bistable solenoid valve must be actuated. This is accomplished by publishing on a specific downlink topic of the TTN broker using the internet again. In the NodeRED flow, the first “TCP in” node is ready to receive messages on a given unassigned TCP port, then a “Reply” JavaScript function returns an object which contains the ID of the target node and the payload, i.e., the message sent by the server. The last light blue node is a TTN Downlink Node which publishes these data on the TTN broker.
Our LoRaWAN™ Gateway is composed of a Raspberry Pi, an iC880a concentrator able to receive packets of different end devices simultaneously sent with different spreading factors on up to 8 different channels in parallel, and an interconnecting backplane (Figure 7b). The embedded software of the Gateway is proprietary and supplied by TTN. The gateway receives LoRa packets from nodes and forwards them to The Things Network [59] through the MQTT protocol thanks to a wideband network, typically WiFi or Ethernet build. On the other hand, it is well known that for data transmission, MQTT could rely on the TCP protocol but a variant, MQTT-SN, is used over other transports such as UDP (or even Bluetooth). However, TTN does not specify which transport protocol is exploited in its Raspberry Pi firmware.

3.3. The Virtual Machine in the Cloud, Database Application, and Graphical User Interface

At the application level, we installed a Linux virtual machine (Figure 8) that includes:
  • Web site (HTML, PHP, CSS, and JavaScript) within a web server;
  • MySQL Database Management System (DBMS) server.
The database is divided into two units: (i) node data section and (ii) web application user data section (e.g., username and password). The node data section is further composed of two tables: the first one identifies the node and the second one the sensor with its data. Finally, the webserver fetches data in the database using PHP and shows them on a web page. CanvasJS is used for the Graphical User Interface (GUI). CanvasJS is described as a JavaScript Charting Library for High Performance and ease of use. It is built using the Canvas element and it can render thousands of data points in a matter of milliseconds. CanvasJS is also interactive and can be updated dynamically. Examples of the GUI, operating both from a PC and a smartphone, can be found in the following sections.
The information contained in the database of our virtual machine could represent a starting point for decision-making processes supporting smart monitoring in the frame of PA. A possible implementation could be to develop and enhance the PHP code, used until now to retrieve information from the database, adding a new section where data are analyzed by a dedicated algorithm. The decisions made by the algorithm could be directly sent to the nodes through TTN and the gateways. As an alternative, the watering decision could be directly issued by an application running on the mobile device of the greenhouse manager.
A plant node was placed in a pot hosting a daisy plant, while a greenhouse node was acquiring data in the ambient. Figure 9 includes three plots of our JavaScript GUI showing the soil water content recorded by the Plant Node together with the ambient relative humidity and temperature recorded by the greenhouse node in the same room where the plant pot was located.

4. Materials

The functionality and reliability of the whole system were proven during two continued experiments with two different natural soils, characterized by very different soil hydraulic properties (see Table 2).
The fine-textured soil (a Silty Loam, according to the United States Department of Agriculture, USDA, classification [68,69]) was composed of 1% gravel, 22% sand, 54% silt, and 23% clay (Figure 10a), while the coarse-textured soil (a Loamy Sand, according to USDA) was composed of 4% gravel, 79% sand, 11% silt, and 6% clay (Figure 10b).

5. Methods, Tests, and Results

Focusing on the Plant Nodes, the system has been tested during a continued experiment where the two different greenhouse soils were watered several times, to verify if the sensor was able to reliably acquire, transmit, and store the ambient temperature and the soil water content parameters in real time and to show them on the custom GUI.
The measurements were made in a plastic box initially filled with expanded clay aggregate which allowed percolated water to outflow and where a Sentek Drill & Drop Probe (hereafter named “reference sensor”) was driven (Figure 11a). Then the remaining top 30 cm of the box was filled with the chosen soil, either Loamy Sand or Silty Loam. Both soils were packed in 0.05 m lifts and gently tapped into place. This accurate packing mechanism was adopted to achieve homogeneity vertically, to keep perfect contact at the interface, and to minimize preferential flow along the sides of the box. The reference sensor was placed at the center of the box. It features an array of water content and temperature sensors placed at 5 cm, 15 cm, 25 cm, 35 cm, and 45 cm from the top surface.
Then our Plant Node #1 was inserted in the soil at a distance of 10 cm from the Sentek sensor (Figure 11b, where Node #1 is shown without the lid and connected to a 230 ACV-5 DCV adapter during a test measurement). Since the reference sensor and the Plant Node #1 are installed in different positions/depths, this has an impact on the measurements, as explained in the following sections. Data of Plant Node #1 were collected every 5 min for several days while the automatic acquisition system of the reference sensor stored the measurement results every minute. In carrying out the measurements, the soil was watered in consecutive steps.
Before and after each measurement a calibration was performed on the Capacitive Soil Moisture Sensor v1.2 measuring water content, exposing it for 15 min. to air, then dipping it for 15 min in tap water. The reproducibility of these measurements certifies that the low-cost water content is in working order.

5.1. Measurements in Silty Loam

In Figure 12 we compare the water content measured by the reference sensor at a depth of 5 and 15 cm in Silty Loam. After installing the sensors in a uniformly and slightly moistured Silty Loam (initial volumetric water content of 10%), then four synchronous waterings, clearly visible at a depth of 5 cm, were performed during the last two days of this measurement. The two plots witness the strong dependence of the water content on the soil depth in Silty Loam.
Figure 13 shows the water content measured by the reference system (5 cm underground) and the output voltage of the Capacitive Soil Moisture Sensor v1.2 in Silty Loam (Node #1). The qualitative correlation between the two plots is evident: each watering causes an increase in the measured water content of the reference sensor and a decrease in the output voltage of Node #1. Moreover, the long time elapsed in soil with VWC of about 10% before the first watering guarantees the Capacitive Soil Moisture Sensor v1.2 had plenty of time to reach its settling time. However, we note the lack of linearity of the Capacitive Soil Moisture Sensor v1.2: its sensitivity is too high for small values of water content and it is substantially reduced for volumetric water contents greater than about 15%. The low draining capability of this soil which maintains its water content during the time causes high values of water content and for this reason, the Capacitive Soil Moisture Sensor v1.2 works most of the time almost in saturation. Future improvements for the sensor should be directed towards the linearization of the input/output curve to obtain a constant sensitivity. A detailed discussion of the correlation between the results of the two sensors is reported below.
Figure 14 shows the reference temperature compared to the temperature of Node #1. In addition, in this case a slight difference is detected, most likely due to the distance of the two sensors and the intrinsic measurement error. Indeed, the LM35 declares a 0.5 °C ensured accuracy (at 25 °C) while the reference Sentek system has a temperature error of 0.1 °C.

5.2. Measurements in Loamy Sand

In Figure 15 we compare the water content measured by the reference sensor at a depth of 5 and 15 cm in Loamy Sand. The water content curve at 5 cm clearly shows five consecutive waterings performed during the 2 days of this measurement. On the other hand, the water content curve at 15 cm shows an increase only after the 3rd watering, clearly witnessing the dependence of water content on the soil depth. Furthermore, due to the alternation of rainfall and water redistribution periods, the evolution in time of the wetting front is very complex, as [70,71] showed in their schemes with compound profiles.
Figure 16 shows the water content measured by the reference system (5 cm underground) and the output voltage of the Capacitive Soil Moisture Sensor v1.2 in Loamy Sand. In addition, for this soil, we obtain a “first sight” reasonable qualitative agreement between the results of the two sensors. Again, we note that the sensitivity of the Capacitive Soil Moisture Sensor v1.2 is too high for small values of water content and it is substantially reduced for volumetric water contents greater than about 10% for this soil material. A detailed discussion of the correlation between the results of the two sensors is reported below.
Figure 17 shows the reference temperature compared to the temperature of Node #1. A slight difference is detected, most likely due to the distance of the two sensors and the intrinsic measurement error.

6. Discussion

Measurement outcomes have been discussed in the relevant sections. In this section, we add some comments and considerations that will help to clarify the experimental observations and will allow us to extract the VWC from the output voltage of the Capacitive Soil Moisture Sensor v1.2.
In principle, the results of the reference sensor and the Capacitive Soil Moisture Sensor v1.2 could not exactly be correlated since:
  • Node #1 is 10 cm far from the reference sensor and soil compaction and watering could not be perfectly uniform in that area;
  • Measurement results from Node #1 could be influenced by temperature variations;
  • The Capacitive Soil Moisture Sensor v1.2 measures an average water content of approximately the first 5 cm of the soil where it is inserted, while the reference sensor is placed at 5 cm from the soil surface with a wider thickness of influence (spanning a depth between 0 and 10 cm).
Regarding the first observation, sample preparation described in Section 4 included an accurate packing mechanism to achieve vertical homogeneity. However, this sample preparation does not guarantee uniform compaction of the soil. In [8] we demonstrated that compaction has an obvious strong influence on the results of the Capacitive Soil Moisture Sensor v1.2. The 10 cm distance between the reference sensor and the Capacitive Soil Moisture Sensor v1.2 could affect water content measurement accuracy and cause a discrepancy between the reference and the low-cost sensor. Non-uniform watering is a second source of non-uniformity, even if watering was manually performed trying to evenly distribute water. Therefore, non-uniform soil compaction and watering represent a random added error to our measurements, which should be kept at a minimum using experience and best practices.
Regarding the temperature variations during the measurements, temperature compensation of VWC could be feasible. This task has been demonstrated to be necessary in the case of a temperature spanning about 20 °C [27]. In that case, backpropagation neural networks have been successfully adopted for correcting the soil moisture information from a low-cost sensor using soil temperature data. However, in our experiment, the temperature variations are significantly smaller, about 2 °C, and a correction was not implemented.
Differently from the previous sources of error, the possible error due to different depths of the reference and the low-cost sensor could be taken into account by properly modeling infiltration and redistribution of water during and after rainfall [69,70,71] as explained in the next subsections. In detail, in Section 6.1 we introduce a consolidated infiltration model available in the literature to obtain the soil water content at any depth, whereas in Section 6.2 we correlate the described Capacitive Soil Moisture Sensor v1.2 output voltage with the prediction of the infiltration model for the two different soils.

6.1. The Modeling Infiltration and Redistribution of Water

To obtain the soil water content at any depth, z, the Corradini et al. [72] infiltration model was used (hereafter named “C et al. (97)”). As shown by Melone et al. [70,71], this model can accurately represent the infiltration process during complex rainfall patterns involving rainfall hiatus periods.
The model was derived considering a constant value of the initial soil water content, θi, and combining the depth-integrated forms of the Darcy law and continuity equation [72]. In addition, as the event progresses in time, t, a dynamic wetting profile, of the lowest depth Z and represented by a distorted rectangle through a shape factor β(θ0) ≤ 1, was assumed. The resulting ordinary differential equation is
d θ 0 d t = ( θ 0 θ i ) β ( θ 0 ) F [ ( θ 0 θ i ) d β ( θ 0 ) d θ 0 + β ( θ 0 ) ] [ q 0 K 0 ( θ 0 θ i ) G ( θ i , θ 0 ) β ( θ 0 ) p K 0 F ]
where p is a parameter linked with the profile shape of the soil water content, θ, θ0 is the soil water content at the surface, K0 is the hydraulic conductivity at the soil surface, F′ is the cumulative dynamic infiltration amount, and G(θi,θ0) is expressed by the following equation:
G = 1 K s θ i θ s D ( θ ) d θ
where θ0 and K0 were replaced by θs and Ks, with Ks the saturated hydraulic conductivity. D ( θ ) is the soil water diffusivity, defined by D ( θ ) = K ( θ ) ψ θ , where K is the hydraulic conductivity and ψ the soil water matric potential. Equation (4) can be applied until a second rainfall pulse happens, with the profile shape of θ(z) approximated [72] by
θ ( z ) θ i θ 0 θ i = 1 e x p [ β z ( θ 0 θ i ) F ( β β 2 ) F ]
Functional forms for β and p were obtained by calibration using results provided by the Richards equation applied to a generic silty loam soil, specifically:
β ( θ 0 ) = 0.6 θ s θ i θ s θ r + 0.4
β · p = 0.98 0.87   e x p ( r K s )           d θ 0 d t 0
β · p = 1.7       d θ 0 d t < 0
Equation (4) can be solved numerically. For q0 = r, with F′ = (rKi)t, it gives θ0(t) until time to ponding, tp, corresponding to θ0 = θs and 0/dt = 0, then after tp, with θ0 = θs and 0/dt = 0, it provides the infiltration capacity (q0 = fc) and for the period with r = 0, with q0 = 0, it gives 0/dt < 0 thus describing the redistribution process.
The involved parameters were estimated through the volume balance criterion along with a best-fit procedure for the water content measured at 5 cm depth by the reference sensor. The initial water contents were set equal to those observed before each experiment, which was found to be almost invariant with depth. Figure 18 shows the results of the model calibration for both the study soils at different depths.

6.2. Correlation of the Capacitive Soil Moisture Sensor v1.2 Output Voltage with the Prediction of the Hydraulic Model

In Section 3.1.1 we listed two equations used to correlate and calibrate the output voltage of the Capacitive Soil Moisture Sensor v1.2 with certified water content for two different types of soil: Silty Loam and Loamy Sand. However, the experiments described in the present paper provide a reference water content at an average depth of 5 cm, which is for sure greater than the average detection depth of 2 or 3 cm of the Capacitive Soil Moisture sensor v1.2, which spans a depth from 0 to 5 cm. A possible solution to this problem is to correlate the VWC from Equations (2) and (3) with the extrapolations of the infiltration and distribution Corradini et al. model at a depth of 2 or 3 cm.
In the remainder of the paper, we show the results obtained for the two different soils.

6.2.1. Water Content in Silty Loam

A three-parameter least-square best fit was calculated between the VWC function obtained using the Corradini model (hereafter indicated as “C et al. (97)” [72] at different depths of 2 and 3 cm, with Equation (1), obtaining two triplets of A, B, and C values shown in Table 3 where the Placidi model “P et al. (20)” [8] is referred to different depths. Similarly, a two-parameter least-square best fit was calculated with the Hrisko model “H (20)” at 2 and 3 cm depths and the model from “C et al. (97)”, obtaining two couples of P and Q values shown in Table 3.
The plots reporting the water content obtained by using the three models for the two different depths are reported in Figure 19.
In Figure 20 a statistical analysis between all the possible couples of the “C et al. (97)” model and voltage measured by Node #1 using Equation (2) (“P” curves) and Equation (3) (“H” curves) at different depths has been reported. The analysis has been performed by using scattering plots, cross-correlation values, and kernel density estimation accomplished by using the Seaborn Python3 tool [73]. In the figure, the eight plots in the main diagonal are the calculated histograms of the corresponding eight quantities, together with the estimated Gaussian mixture probability density function. The plots in the lower triangular part represent the scattering plots of each couple of quantities, together with the locally weighted regression curve whereas the values in the upper triangular part, instead, represent the correlation coefficients between each couple of quantities.
Looking at homogeneous values (i.e., correlation data obtained at the same depth), The best correlation values we obtained (0.94) are between “C et al. (97)” and “P et al. (20”) at a depth of 3 cm. The 0.94 correlation coefficient is slightly greater than the value of 0.91 obtained between “C et al. (97)” and “P et al. (20)” at a depth of 2 cm. In Figure 21 the comparison among the best results obtained from the correlation are reported for the three models. Even if peaks and valleys of the hydraulic model are not always perfectly reproduced by the Capacitive Soil Moisture Sensor v1.2 fitting equations, the overall behavior of the “P et al. (20)” model can capture the main features of the VWC at a shallow depth. We note that, due to the peculiarities of experimental systems involving natural soils, it is impossible to obtain results that are completely reproducible from mathematical schemes. For example, inserting different sensors into the soil produces different preferential waterways that can turn out in minimally different results, especially when the experimental behavior is compared with mathematical model performances.

6.2.2. Water Content in Loamy Sand

A three-parameter least-square best fit was also calculated in Loamy Sand between Equation (1) and the VWC function obtained using the “C et al. (97)” model at different depths of 2 and 3 cm. The two triplets of A, B, and C values are reported in Table 4 where the model “P et al. (20)” is referred to different depths. Similarly, a two-parameter least-square best fit was calculated with the Hrisko model “H (20)” at 2 and 3 cm depths and the model from “C et al. (97)”, obtaining two couples of P and Q values shown in Table 4.
The plot with the water content for the three models for the two different depths is reported in Figure 22.
Then a statistical analysis with scattering plots, cross-correlation values, and kernel density estimation was accomplished by using the Seaborn Python3 tool (Figure 23) between all the possible couples of models at different depths. Looking at homogeneous values (i.e., correlation data obtained at the same depth), the best correlation values we obtained (0.58) are between “C et al. (97)” and the “Hrisko model”. A much worse correlation was obtained for Loamy Sand compared to Silty Loam. However, as highlighted in [54], the behavior of coarse-textured soil (as the Loamy Sand) can be mathematically modeled with greater difficulty than that of fine-textured soil (as the Silty Loam).
Figure 24 shows the comparison among the best results obtained from the correlation procedure. Even if a first sight comparison of the three curves shows significant differences, it should be noted that for practical applications of sensors for measuring the soil water content, differences of a few percent are often irrelevant.

7. Conclusions

A low-power WSN based on LoRaWAN™ was designed with a focus on low-cost PA applications, such as greenhouse sensing and actuation. Two types of wireless nodes were envisaged, greenhouse node and plant node, and the whole LPWAN was designed and implemented, including an 8-channel gateway/concentrator. The first experimental results were collected and stored in a database managed by a virtual machine running in a cloud service. Since all subsystems adopted in this research are off-the-shelf elements with available open-source software libraries, only a minimal effort is needed when the system is implemented for a different application.
Measurement results were focused on measurements of water content and were collected using plant nodes in Loamy Sand and Silty Loam, proving the functionality and reliability of the whole system (sensor nodes, gateway, GUI, Node-RED, and Cloud) and comparing the system behavior with a reference sensor from Sentek. Temperature measurements of our plant nodes compare as expected with the reference sensor within the supposed accuracy of the adopted sensors. Regarding water content measurements, a correlation was attempted between the results of the cheap Capacitive Soil Moisture Sensor v1.2 and those of the Sentek reference sensor. We realized the low-cost water content sensor suffers from a non-constant sensitivity; therefore, non-linear fitting equations are necessary for correlating its voltage output with the VWC. We adopted for the Capacitive Soil Moisture Sensor v1.2 two VWC fitting equations taken from the literature. Since the reference sensor and the cheap water content sensor span different soil depths (5 cm and 2-3 cm, respectively), we first modeled the theoretical VWC profiles at different depths using a proven water infiltration and redistribution model, calibrating the model on the reference sensor results at a depth of 5 cm. Then we used the two fitting equations for the Capacitive Soil Moisture Sensor v1.2 and calculated multi-parameter least squares fit to the hydraulic model at 2 and 3 cm depths. A very satisfactory correlation coefficient of 0.94 was obtained for Silty Loam using the exponential/logarithmic “P” model at a depth of 3 cm. Instead, the best correlation value we obtained using the same fitting procedure applied to the results in Loamy Sand was 0.58 at a depth of 2 cm using the hyperbolic “H” model. Despite the low correlation coefficient, the VWC values we obtained with the hyperbolic “H” model can be considered as representative of the real VWC at a depth of 2 cm, since differences of a few percent are often irrelevant for practical applications of sensors for measuring the soil water content.
In this work, we demonstrated the lack of linearity of the adopted soil water content sensor. Notwithstanding this lack of linearity, the introduction of the infiltration model and of a dedicated statistical analysis allowed us to extract reliable values of the volumetric water content for both Silty Loam and Loamy Sand. This procedure represents the novelty and the potential of the proposed approach. Therefore, future work will address the optimization of the sensor performance. To this purpose, it will be useful to better understand the behavior of the sensor from simulations and to optimize the layout of the sensor without impacting significantly on the cost, also considering the mechanical integration constraints needed for industrialization.

Author Contributions

Conceptualization, P.P., R.M., and A.S.; data curation, P.P., R.M., D.F., N.P., F.G., and A.S.; formal analysis, P.P., R.M. and A.S.; funding acquisition, P.P.; investigation, R.M., D.F., N.P. and F.G.; methodology, P.P., and A.S.; Project administration, P.P. and A.S.; Software, D.F., and F.G.; supervision, P.P., R.M., and A.S.; validation, P.P., D.F., N.P. and A.S.; visualization, D.F., and F.G.; writing—original draft, P.P., and A.S.; writing—review and editing, P.P., R.M., and A.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partly funded by the DEPARTMENT OF ENGINEERING OF THE UNIVERSITY OF PERUGIA, Italy, grant “Ricerca di base 2018-RICBA18-PP”, “Ricerca di base 2019-RICBA19-PP”, “Ricerca di base 2020-RICBA20-PP”.

Acknowledgments

Thanks are due to colleagues D. Grohmann, G. Marconi, and M. Cecconi for helpful discussions and technical support.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Banđur, Đ.; Jakšić, B.; Banđur, M.; Jović, S. An analysis of energy efficiency in Wireless Sensor Networks (WSNs) applied in smart agriculture. Comput. Electron. Agric. 2019, 156, 500–507. [Google Scholar] [CrossRef]
  2. Kochhar, A.; Kumar, N. Wireless sensor networks for greenhouses: An end-to-end review. Comput. Electron. Agric. 2019, 163, 104877. [Google Scholar] [CrossRef]
  3. Castañeda-Miranda, A.; Castaño, V.M. Internet of things for smart farming and frost intelligent control in greenhouses. Comput. Electron. Agric. 2020, 176, 105614. [Google Scholar] [CrossRef]
  4. Pradeepkumar, D.; Ravi, V. Soft computing hybrids for FOREX rate prediction: A comprehensive review. Comput. Oper. Res. 2018, 99, 262–284. [Google Scholar] [CrossRef]
  5. Panigrahi, S.; Behera, H.S. A hybrid ETS–ANN model for time series forecasting. Eng. Appl. Artif. Intell. 2017, 66, 49–59. [Google Scholar] [CrossRef]
  6. Fan, Y.; Zhang, Y.; Chen, Z.; Wang, X.; Huang, B. Comprehensive assessments of soil fertility and environmental quality in plastic greenhouse production systems. Geoderma 2021, 385, 114899. [Google Scholar] [CrossRef]
  7. Guo, Y.; Zhao, H.; Zhang, S.; Wang, Y.; Chow, D. Modeling and optimization of environment in agricultural greenhouses for improving cleaner and sustainable crop production. J. Clean. Prod. 2021, 285, 124843. [Google Scholar] [CrossRef]
  8. Placidi, P.; Gasperini, L.; Grassi, A.; Cecconi, M.; Scorzoni, A. Characterization of Low-Cost Capacitive Soil Moisture Sensors for IoT Networks. Sensors 2020, 20, 3585. [Google Scholar] [CrossRef]
  9. Syafrudin, M.; Alfian, G.; Fitriyani, N.L.; Rhee, J. Performance Analysis of IoT-Based Sensor, Big Data Processing, and Machine Learning Model for Real-Time Monitoring System in Automotive Manufacturing. Sensors 2018, 18, 2946. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  10. Castañeda, A.; Castaño, V.M. Smart frost measurement for anti-disaster intelligent control in greenhouses via embedding IoT and hybrid AI methods. Measurement 2020, 164, 108043. [Google Scholar] [CrossRef]
  11. Rizzi, M.; Ferrari, P.; Flammini, A.; Sisinni, E. Evaluation of the IoT LoRaWAN Solution for Distributed Measurement Applications. IEEE Trans. Instrum. Meas. 2017, 66, 12. [Google Scholar] [CrossRef]
  12. Zamora-Izquierdo, M.A.; Santa, J.; Martínez, J.A.; Martínez, V.; Skarmeta, A.F. Smart farming IoT platform based on edge and cloud computing. Biosyst. Eng. 2019, 177, 4–17. [Google Scholar] [CrossRef]
  13. Iyengar, S.S.; Boroojeni, K.G.; Balakrishnan, N. Mathematical Theories of Distributed Sensor Networks; Springer: Berlin/Heidelberg, Germany, 2014. [Google Scholar]
  14. Benos, L.; Tagarakis, A.; Dolias, G.; Berruto, R.; Kateris, D.; Bochtis, D. Machine Learning in Agriculture: A Comprehensive Updated Review. Sensors 2021, 21, 3758. [Google Scholar] [CrossRef]
  15. Patrício, D.I.; Rieder, R. Computer vision and artificial intelligence in precision agriculture for grain crops: A systematic re-view. Comput. Electron. Agric. 2018, 153, 69–81. [Google Scholar] [CrossRef] [Green Version]
  16. van Klompenburg, T.; Kassahun, A.; Catal, C. Crop yield prediction using machine learning: A systematic literature review. Comput. Electron. Agric. 2020, 177, 105709. [Google Scholar] [CrossRef]
  17. Liakos, K.G.; Busato, P.; Moshou, D.; Pearson, S.; Bochtis, D. Machine learning in agriculture: A review. Sensors 2018, 18, 2674. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  18. Yuan, Y.; Chen, L.; Wu, H.; Li, L. Advanced agricultural disease image recognition technologies: A review. Inf. Process. Agric. 2021, 8, 1–12. [Google Scholar] [CrossRef]
  19. Akbar, A.; Kuanar, A.; Patnaik, J.; Mishra, A.; Nayak, S. Application of Artificial Neural Network modeling for optimization and prediction of essential oil yield in turmeric (Curcuma longa L.). Comput. Electron. Agric. 2018, 148, 160–178. [Google Scholar] [CrossRef]
  20. Vij, A.; Vijendra, S.; Jain, A.; Bajaj, S.; Bassi, A.; Sharma, A. IoT and Machine Learning Approaches for Automation of Farm Irrigation System. Procedia Comput. Sci. 2020, 167, 1250–1257. [Google Scholar] [CrossRef]
  21. Rehman, A.U.; Abbasi, A.Z.; Islam, N.; Shaikh, Z.A. A review of wireless sensors and networks’ applications in agriculture. Comput. Stand. Interfaces 2014, 36, 263–270. [Google Scholar] [CrossRef]
  22. Farooq, M.S.; Riaz, S.; Abid, A.; Umer, T.; Bin Zikria, Y. Role of IoT Technology in Agriculture: A Systematic Literature Review. Electronics 2020, 9, 319. [Google Scholar] [CrossRef] [Green Version]
  23. Shi, X.; An, X.; Zhao, Q.; Liu, H.; Xia, L.; Sun, X.; Guo, Y. State-of-the-Art Internet of Things in Protected Agriculture. Sensors 2019, 19, 1833. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  24. Sagheer, A.; Mohammed, M.; Riad, K.; Alhajhoj, M. A Cloud-Based IoT Platform for Precision Control of Soilless Greenhouse Cultivation. Sensors 2020, 21, 223. [Google Scholar] [CrossRef] [PubMed]
  25. Shafi, U.; Mumtaz, R.; García-Nieto, J.; Hassan, S.A.; Zaidi, S.A.R.; Iqbal, N. Precision Agriculture Techniques and Practices: From Considerations to Applications. Sensors 2019, 19, 3796. [Google Scholar] [CrossRef] [Green Version]
  26. Messina, G.; Modica, G. Applications of UAV Thermal Imagery in Precision Agriculture: State of the Art and Future Research Outlook. Remote. Sens. 2020, 12, 1491. [Google Scholar] [CrossRef]
  27. Gnecchi, J.A.G.; Tirado, L.F.; Campos, G.M.C.; Ramirez, R.D.; Gordillo, C.F.E. Design of a Soil Moisture Sensor with Temperature Compensation Using a Backpropagation Neural Network. In Proceedings of the 2008 Electronics, Robotics and Automotive Mechanics Conference, Cuernavaca, Mexico, 30 September–3 October 2008; pp. 553–558. [Google Scholar]
  28. Danita, M.; Mathew, B.; Shereen, N.; Sharon, N.; Paul, J.J. IoT Based Automated Greenhouse Monitoring System. In Proceedings of the 2018 Second International Conference on Intelligent Computing and Control Systems (ICICCS), Madurai, India, 14–15 June 2018; pp. 1933–1937. [Google Scholar]
  29. Ruiz-Garcia, L.; Lunadei, L.; Barreiro, P.; Robla, J.I. A Review of Wireless Sensor Technologies and Applications in Agriculture and Food Industry: State of the Art and Current Trends. Sensors 2009, 9, 4728–4750. [Google Scholar] [CrossRef] [Green Version]
  30. BeechamRes. Towards Smart Farming Agriculture Embracing the IoT Vision. Available online: http://www.beechamresearch.com/files/BRL%20Smart%20Farming%20Executive%20Summary.pdf (accessed on 12 May 2020).
  31. SU, S.L.; Singh, D.N.; Baghini, M.S. A critical review of soil moisture measurement. Measurement 2014, 54, 92–105. [Google Scholar] [CrossRef]
  32. Nagahage, E.A.A.D.; Nagahage, I.S.P.; Fujino, T. Calibration and Validation of a Low-Cost Capacitive Moisture Sensor to Integrate the Automated Soil Moisture Monitoring System. Agriculture 2019, 9, 141. [Google Scholar] [CrossRef] [Green Version]
  33. Hrisko, J. Capacitive Soil Moisture Sensor Theory, Calibration, and Testing. Tech. Rep. 2020, 2, 1–12. [Google Scholar] [CrossRef]
  34. Morais, R.; Mendes, J.; Silva, R.; Silva, N.; Sousa, J.; Peres, E. A Versatile, Low-Power and Low-Cost IoT Device for Field Data Gathering in Precision Agriculture Practices. Agriculture 2021, 11, 619. [Google Scholar] [CrossRef]
  35. Figorilli, S.; Pallottino, F.; Colle, G.; Spada, D.; Beni, C.; Tocci, F.; Vasta, S.; Antonucci, F.; Pagano, M.; Fedrizzi, M.; et al. An Open Source Low-Cost Device Coupled with an Adaptative Time-Lag Time-Series Linear Forecasting Modeling for Apple Trentino (Italy) Precision Irrigation. Sensors 2021, 21, 2656. [Google Scholar] [CrossRef]
  36. Escriba, C.; Bravo, E.G.A.; Roux, J.; Fourniols, J.-Y.; Contardo, M.; Acco, P.; Soto-Romero, G. Toward Smart Soil Sensing in v4.0 Agriculture: A New Single-Shape Sensor for Capacitive Moisture and Salinity Measurements. Sensors 2020, 20, 6867. [Google Scholar] [CrossRef] [PubMed]
  37. Kojima, Y.; Shigeta, R.; Miyamoto, N.; Shirahama, Y.; Nishioka, K.; Mizoguchi, M.; Kawahara, Y. Low-Cost Soil Moisture Profile Probe Using Thin-Film Capacitors and a Capacitive Touch Sensor. Sensors 2016, 16, 1292. [Google Scholar] [CrossRef]
  38. Ferrández-Pastor, F.J.; García-Chamizo, J.M.; Nieto-Hidalgo, M.; Pascual, J.M.M.; Mora-Martínez, J. Developing Ubiquitous Sensor Network Platform Using Internet of Things: Application in Precision Agriculture. Sensors 2016, 16, 1141. [Google Scholar] [CrossRef] [Green Version]
  39. Ferrández-Pastor, F.J.; García-Chamizo, J.M.; Nieto-Hidalgo, M.; Mora-Martínez, J. Precision Agriculture Design Method Using a Distributed Computing Architecture on Internet of Things Context. Sensors 2018, 18, 1731. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  40. Coping with Water Scarcity. UN—Water Thematic Initiatives. A Strategic Issue and Priority for System-Wide Action. 2006. Available online: http://www.unwater.org/publications/coping-water-scarcity/ (accessed on 3 January 2021).
  41. Hanak, E.; Mount, J.; Chappelle, C.; Lund, J.; Medellín-Azuara, J.; Moyle, P. Public Policy Institute of California, Water Policy Center. What If California’s Drought Continues? 2015. Available online: http://www.ppic.org/publication/what-if-californias-drought-continues/ (accessed on 3 January 2021).
  42. Yuanyuan, C.; Zuozhuang, Z. Research and Design of Intelligent Water-saving Irrigation Control System Based on WSN. In Proceedings of the 2020 IEEE International Conference on Artificial Intelligence and Computer Applications (ICAICA), Dalian, China, 27–29 June 2020. [Google Scholar]
  43. Mohanraj, I.; Gokul, V.; Ezhilarasie, R.; Umamakeswari, A. Intelligent drip irrigation and fertigation using wireless sensor networks. In Proceedings of the 2017 IEEE Technological Innovations in ICT for Agriculture and Rural Development (TIAR), Chennai, India, 7–8 April 2017. [Google Scholar]
  44. Walker, J.P.; Willgoose, G.R.; Kalma, J.D. In Situ measurement of soil moisture: A comparison of techniques. J. Hydrol. 2004, 293, 85–99. [Google Scholar] [CrossRef]
  45. Tremsin, V.A. Real-Time Three-Dimensional Imaging of Soil Resistivity for Assessment of Moisture Distribution for Intelligent Irrigation. Hydrology 2017, 4, 54. [Google Scholar] [CrossRef] [Green Version]
  46. Subahi, F.; Bouazza, K.E. An Intelligent IoT-Based System Design for Controlling and Monitoring Greenhouse Temperature. IEEE Access 2020, 8, 125488–125500. [Google Scholar] [CrossRef]
  47. Pawlowski, A.; Guzman, J.L.; Rodríguez, F.; Berenguel, M.; Sánchez, J.; Dormido, S. Simulation of Greenhouse Climate Monitoring and Control with Wireless Sensor Network and Event-Based Control. Sensors 2009, 9, 232–252. [Google Scholar] [CrossRef] [Green Version]
  48. Germani, L.; Mecarelli, V.; Baruffa, G.; Rugini, L.; Frescura, F. An IoT Architecture for Continuous Livestock Monitoring Using LoRa LPWAN. Electronics 2019, 8, 1435. [Google Scholar] [CrossRef] [Green Version]
  49. Wang, N.; Zhang, N.; Wang, M. Wireless sensors in agriculture and food industry—Recent development and future perspective. Comput. Electron. Agric. 2006, 50, 1–14. [Google Scholar] [CrossRef]
  50. Haseeb, K.; Ud Din, I.; Almogren, A.; Islam, N. An Energy Efficient and Secure IoT-Based WSN Framework: An Application to Smart Agriculture. Sensors 2020, 20, 2081. [Google Scholar] [CrossRef] [PubMed]
  51. Yelamarthi, K.; Aman, M.S.; Abdelgawad, A. An Application-Driven Modular IoT Architecture. Wirel. Commun. Mob. Comput. 2017, 2017, 1350929. [Google Scholar] [CrossRef] [PubMed]
  52. Gutiérrez, J.; Villa-Medina, J.F.; Nieto-Garibay, A.; Porta-Gándara, M.Á. Automated Irrigation System Using a Wireless Sensor Network and GPRS Module. IEEE Trans. Instrum. Meas. 2014, 63, 1. [Google Scholar] [CrossRef]
  53. LoRa Alliance. What is LoRaWAN® Specification. Available online: https://lora-alliance.org/about-lorawan/ (accessed on 1 February 2021).
  54. Zourmand, A.; Hing, A.L.K.; Hung, C.W.; Abdulrehman, M. Internet of Things (IoT) using LoRa technology. In Proceedings of the Conference I2CACIS 2019, Selangor, Malaysia, 29 June 2019. [Google Scholar]
  55. Gu, C.; Tan, R.; Huang, J. SoftLoRa—A LoRa-Based Platform for Accurate and Secure Timing. In Proceedings of the IPSN 19, Montreal, QC, Canada, 16–18 April 2019; pp. 309–310. [Google Scholar]
  56. Van Torre, P.; Ameloot, T.; Rogier, H. Long-range body-to-body LoRa link at 868 MHz. In Proceedings of the 13th European Conference on Antennas and Propagation (EuCAP 2019), Krakow, Polland, 31 March–15 April 2019. [Google Scholar]
  57. Lavric, A.; Popa, V. Internet of Things and LoRa™ Low-Power Wide-Area Networks: A survey. In Proceedings of the International Symposium on Signals, Circuits and Systems (ISSCS), Iasi, Romania, 3–14 July 2017. [Google Scholar]
  58. Mikhaylov, K.; Petaejaejaervi, J.; Haenninen, T. Analysis of capacity and scalability of the LoRa low power wide area network technology. In Proceedings of the 22nd European Wireless Conference, Oulu, Finland, 1–6 May 2016. [Google Scholar]
  59. Thethingsnetwork.org. Available online: https://www.thethingsnetwork.org/docs/network/architecture.html (accessed on 2 May 2019).
  60. FarmBot. Available online: https://farm.bot/ (accessed on 2 May 2019).
  61. SKU:SEN0193. Available online: https://wiki.dfrobot.com/Capacitive_Soil_Moisture_Sensor_SKU_SEN0193 (accessed on 10 December 2020).
  62. A WiFi Enabled Soil Moisture Sensor. Available online: https://www.hackster.io/rbaron/a-wifi-enabled-soil-moisture-sensor-49912b (accessed on 2 May 2021).
  63. Munyaradzi, M.; Rupere, T.; Nyambo, B.; Mukute, S.; Chinyerutse, M.; Hapanga, T.; Mashonjowa, E. A Low Cost Automatic Irrigation Controller Driven by Soil Moisture Sensors. Int. J. Agric. Innov. Res. 2013, 2, 1–7. [Google Scholar]
  64. Nemali, K.S.; Montesano, F.; Dove, S.K.; van Iersel, M.W. Calibration and performance of moisture sensors in soilless substrates:ECH2O and Theta probes, Scientia. Horticulturae 2007, 112, 227–234. [Google Scholar] [CrossRef]
  65. Qu, W.; Bogena, H.R.; Huisman, J.A.; Vereecken, H. Calibration of a Novel Low-Cost Soil Water Content Sensor Based on a Ring Oscillator. Vadose Zone J. 2013, 12, vzj2012.0139. [Google Scholar] [CrossRef]
  66. Bogena, H.R.; Huisman, J.A.; Schilling, B.; Weuthen, A.; Vereecken, H. Effective Calibration of Low-Cost Soil Water Content Sensors. Sensors 2017, 17, 208. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  67. Node-RED. Available online: https://nodered.org/ (accessed on 3 January 2021).
  68. Linsley, R.K.; Franzini, J.B.; Freyberg, D.L.; Tchobanoglous, G. Water–Resources Engineering; McGraw-Hill Singapore: Singapore, 1992. [Google Scholar]
  69. Morbidelli, R.; Saltalippi, C.; Flammini, A.; Cifrodelli, M.; Picciafuoco, T.; Corradini, C.; Govindaraju, R.S. In-situ measurements of soil saturated hydraulic conductivity: Assessment of reliability trough rainfall-runoff experiments. Hydrol. Process. 2017, 31, 3084–3094. [Google Scholar] [CrossRef]
  70. Melone, F.; Corradini, C.; Morbidelli, R.; Saltalippi, C. Laboratory experimental check of a conceptual model for infiltration under complex rainfall patterns. Hydrol. Proc. 2006, 20, 439–452. [Google Scholar] [CrossRef]
  71. Melone, F.; Corradini, C.; Morbidelli, R.; Saltalippi, C.; Flammini, A. Comparison of theoretical and experimental soil moisture profiles under complex rainfall patterns. J. Hydrol. Eng. 2008, 13, 1170–1176. [Google Scholar] [CrossRef]
  72. Corradini, C.; Melone, F.; Smith, E.R. A unified model for infiltration and redistribution during complex rainfall patterns. J. Hydrol. 1997, 192, 104–124. [Google Scholar] [CrossRef]
  73. Waskom, M.; Botvinnik, O.; O’Kane, D.; Hobson, P.; Ostblom, J.; Lukauskas, S.; Gemperline, D.C.; Augspurger, T.; Halchenko, Y.; Cole, J.B.; et al. mwaskom/seaborn: v0.9.0 (July 2018). Available online: http://seaborn.pydata.org/ (accessed on 25 November 2019).
  74. Silverman, B.W. Density Estimation for Statistics and Data Analysis; Routledge: New York, NY, USA, 1998. [Google Scholar]
  75. Fan, J. Local Polynomial Modelling and Its Applications: Monographs on Statistics and Applied Probability 66; Routledge: New York, NY, USA, 1996. [Google Scholar]
Figure 1. System architecture.
Figure 1. System architecture.
Sensors 21 05110 g001
Figure 2. (a) Plant and Greenhouse node electronics and their actuator and sensors. (1) Semtech SX1272 LoRa Radio, (2) L152RE low power microcontroller, (3) Sensor/Actuator Interface Shield; (b) from left to right for the Greenhouse Node: Si7021 and Photoresistor. (c) from left to right for the Plant Node: “Capacitive Soil Moisture Sensor v1.2”, TMP36 or LM35 temperature sensor, and bistable solenoid valve.
Figure 2. (a) Plant and Greenhouse node electronics and their actuator and sensors. (1) Semtech SX1272 LoRa Radio, (2) L152RE low power microcontroller, (3) Sensor/Actuator Interface Shield; (b) from left to right for the Greenhouse Node: Si7021 and Photoresistor. (c) from left to right for the Plant Node: “Capacitive Soil Moisture Sensor v1.2”, TMP36 or LM35 temperature sensor, and bistable solenoid valve.
Sensors 21 05110 g002
Figure 3. The final version of the Plant Node.
Figure 3. The final version of the Plant Node.
Sensors 21 05110 g003
Figure 4. A detailed view of the printed circuit board component section with the electrical schematic of the “Capacitive Soil Moisture Sensor v1.2”. The reported resistance values are taken from the component labels while the capacitance values were measured using an HP4275A LCR meter. Cprobe is the variable capacitance of the coplanar capacitor printed on the circuit board. Due to a missing grounding line of the printed circuit board [8], in our measurements, a 1 MΩ shunt resistor has been directly connected to the Sensor/Actuator Interface Shield.
Figure 4. A detailed view of the printed circuit board component section with the electrical schematic of the “Capacitive Soil Moisture Sensor v1.2”. The reported resistance values are taken from the component labels while the capacitance values were measured using an HP4275A LCR meter. Cprobe is the variable capacitance of the coplanar capacitor printed on the circuit board. Due to a missing grounding line of the printed circuit board [8], in our measurements, a 1 MΩ shunt resistor has been directly connected to the Sensor/Actuator Interface Shield.
Sensors 21 05110 g004
Figure 5. Embedded software implementation for the Plant Node.
Figure 5. Embedded software implementation for the Plant Node.
Sensors 21 05110 g005
Figure 6. Packet structure.
Figure 6. Packet structure.
Sensors 21 05110 g006
Figure 7. (a) The Node-RED flow running in the Raspberry of the Gateway. (b) The 8-channel iC880a /Concentrator, with interconnection backplane and Raspberry PI3, is mounted in a plastic box.
Figure 7. (a) The Node-RED flow running in the Raspberry of the Gateway. (b) The 8-channel iC880a /Concentrator, with interconnection backplane and Raspberry PI3, is mounted in a plastic box.
Sensors 21 05110 g007
Figure 8. Block diagram of the virtual machine.
Figure 8. Block diagram of the virtual machine.
Sensors 21 05110 g008
Figure 9. Simultaneous acquisition of ambient temperature and ambient relative humidity (RH) of the greenhouse node and soil water content of a single plant node, shown on the display of a portable device.
Figure 9. Simultaneous acquisition of ambient temperature and ambient relative humidity (RH) of the greenhouse node and soil water content of a single plant node, shown on the display of a portable device.
Sensors 21 05110 g009
Figure 10. Grain size distribution of the soils used for the experiments: (a) fine-textured soil (Silty Loam, according to USDA); (b) coarse-textured soil (Loamy Sand, according to USDA).
Figure 10. Grain size distribution of the soils used for the experiments: (a) fine-textured soil (Silty Loam, according to USDA); (b) coarse-textured soil (Loamy Sand, according to USDA).
Sensors 21 05110 g010
Figure 11. The plastic box used for our experiments. (a) Expanded clay aggregate bottom filler, together with a Sentek Drill & Drop Probe. (b) Plant Node #1 and Sentek sensor during acquisition.
Figure 11. The plastic box used for our experiments. (a) Expanded clay aggregate bottom filler, together with a Sentek Drill & Drop Probe. (b) Plant Node #1 and Sentek sensor during acquisition.
Sensors 21 05110 g011
Figure 12. Water content measured by the reference system at two different depths in Silty Loam: red, 5 cm underground, and green, 15 cm underground.
Figure 12. Water content measured by the reference system at two different depths in Silty Loam: red, 5 cm underground, and green, 15 cm underground.
Sensors 21 05110 g012
Figure 13. Water content measured by the reference system (red, 5 cm underground) and the Capacitive Soil Moisture Sensor v1.2 (blue) in Silty Loam. Initial and final peaks of the Node #1 plot represent a calibration of the Capacitive Soil Moisture Sensor v1.2 obtained by placing the sensor for 15 min in the air (maximum peak) and 15 min in tap water (minimum peak).
Figure 13. Water content measured by the reference system (red, 5 cm underground) and the Capacitive Soil Moisture Sensor v1.2 (blue) in Silty Loam. Initial and final peaks of the Node #1 plot represent a calibration of the Capacitive Soil Moisture Sensor v1.2 obtained by placing the sensor for 15 min in the air (maximum peak) and 15 min in tap water (minimum peak).
Sensors 21 05110 g013
Figure 14. Temperature measured by the reference system (red, 5 cm underground) and the LM35 mounted in Node #1 (blue) in Silty Loam. The rectangular area shows the region where we realized the calibrations of Section 6.2.
Figure 14. Temperature measured by the reference system (red, 5 cm underground) and the LM35 mounted in Node #1 (blue) in Silty Loam. The rectangular area shows the region where we realized the calibrations of Section 6.2.
Sensors 21 05110 g014
Figure 15. Water content measured by the reference system at two different depths in Loamy Sand: orange, 5 cm underground, and blue, 15 cm underground.
Figure 15. Water content measured by the reference system at two different depths in Loamy Sand: orange, 5 cm underground, and blue, 15 cm underground.
Sensors 21 05110 g015
Figure 16. Water content measured by the reference system (orange, 5 cm underground) and the Capacitive Soil Moisture Sensor v1.2 (blue) in Loamy Sand. Initial and final peaks of the Node #1 plot represent a calibration of the Capacitive Soil Moisture Sensor v1.2 obtained by placing the sensor for 15 min in the air (maximum peak) and 15 min in water (minimum peak).
Figure 16. Water content measured by the reference system (orange, 5 cm underground) and the Capacitive Soil Moisture Sensor v1.2 (blue) in Loamy Sand. Initial and final peaks of the Node #1 plot represent a calibration of the Capacitive Soil Moisture Sensor v1.2 obtained by placing the sensor for 15 min in the air (maximum peak) and 15 min in water (minimum peak).
Sensors 21 05110 g016
Figure 17. Temperature measured by the reference system (orange, 5 cm underground) and the LM35 mounted in Node #1 (blue) in Loamy Sand.
Figure 17. Temperature measured by the reference system (orange, 5 cm underground) and the LM35 mounted in Node #1 (blue) in Loamy Sand.
Sensors 21 05110 g017
Figure 18. Modeling results for infiltration and redistribution of water (“C et al. (97)” model) during and after rainfall at different depths (1, 2, 3, 4, and 5 cm) for (a) Silty Loam and (b) Loamy Sand. The model was calibrated with respect to the measured values at a 5 cm depth (Reference sensor). For example, in the figure “C et al. (97)_1” stands for the modeling result at a 1 cm depth.
Figure 18. Modeling results for infiltration and redistribution of water (“C et al. (97)” model) during and after rainfall at different depths (1, 2, 3, 4, and 5 cm) for (a) Silty Loam and (b) Loamy Sand. The model was calibrated with respect to the measured values at a 5 cm depth (Reference sensor). For example, in the figure “C et al. (97)_1” stands for the modeling result at a 1 cm depth.
Sensors 21 05110 g018aSensors 21 05110 g018b
Figure 19. Comparison among the water infiltration and redistribution “C” model for Silty Loam at a depth of 2 and 3 cm with the VWC obtained from the voltage measured by Node #1 using Equation (2) (“P” curves) and Equation (3) (“H” curves).
Figure 19. Comparison among the water infiltration and redistribution “C” model for Silty Loam at a depth of 2 and 3 cm with the VWC obtained from the voltage measured by Node #1 using Equation (2) (“P” curves) and Equation (3) (“H” curves).
Sensors 21 05110 g019
Figure 20. Statistical analysis with scattering plots, cross-correlation values, and kernel density estimation (KDE) obtained by using the Seaborn Python3 tool [73,74,75] in Silty Loam.
Figure 20. Statistical analysis with scattering plots, cross-correlation values, and kernel density estimation (KDE) obtained by using the Seaborn Python3 tool [73,74,75] in Silty Loam.
Sensors 21 05110 g020
Figure 21. Comparison among the best results obtained from the correlation procedure for the three considered models.
Figure 21. Comparison among the best results obtained from the correlation procedure for the three considered models.
Sensors 21 05110 g021
Figure 22. Comparison among the water infiltration and redistribution “C” model for Loamy Sand at a depth of 2 and 3 cm with the VWC obtained from the voltage measured by Node #1 using Equation (2) (“P” curves) and Equation (3) (“H” curves).
Figure 22. Comparison among the water infiltration and redistribution “C” model for Loamy Sand at a depth of 2 and 3 cm with the VWC obtained from the voltage measured by Node #1 using Equation (2) (“P” curves) and Equation (3) (“H” curves).
Sensors 21 05110 g022
Figure 23. Statistical analysis with scattering plots, cross-correlation values, and kernel density estimation (KDE) in Loamy Sand.
Figure 23. Statistical analysis with scattering plots, cross-correlation values, and kernel density estimation (KDE) in Loamy Sand.
Sensors 21 05110 g023
Figure 24. Comparison among the best results obtained from the correlation procedure for the three considered models.
Figure 24. Comparison among the best results obtained from the correlation procedure for the three considered models.
Sensors 21 05110 g024
Table 1. Selected sensors characteristics.
Table 1. Selected sensors characteristics.
Sample IDDC/%f/MHz
S137.121.221
S235.581.533
S534.361.533
S632.931.524
S734.781.552
S934.361.533
S1035.001.510
S1335.121.535
S1434.021.527
Table 2. Main hydraulic properties of study soils. Ks = saturated hydraulic conductivity; θs and θr = saturated and residual water content, respectively; bd = bulk density.
Table 2. Main hydraulic properties of study soils. Ks = saturated hydraulic conductivity; θs and θr = saturated and residual water content, respectively; bd = bulk density.
Fine-Textured Soil
(Silty Loam)
Coarse-Textured Soil
(Loamy Sand)
Ks (mmh−1)10.030.0
θs0.4200.295
θr0.0570.035
bd (gcm−3)2.6282.669
Table 3. Least-square best-fit parameters of Equations (2) and (3) in Silty Loam.
Table 3. Least-square best-fit parameters of Equations (2) and (3) in Silty Loam.
P et al. (20)_3P et al. (20)_2
A0.7110.731
B9.7210.2
C0.8640.859
H (20)_3H (20)_2
P73.475.8
Q55.157.2
Table 4. Least-square best-fit parameters of Equation (2) and Equation (3) in Loamy Sand.
Table 4. Least-square best-fit parameters of Equation (2) and Equation (3) in Loamy Sand.
P et al. (20)_3P et al. (20)_2
A1.641.65
B8.168.41
C0.850.85
H (20)_3H (20)_2
P17.4417.54
Q2.372.1
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Placidi, P.; Morbidelli, R.; Fortunati, D.; Papini, N.; Gobbi, F.; Scorzoni, A. Monitoring Soil and Ambient Parameters in the IoT Precision Agriculture Scenario: An Original Modeling Approach Dedicated to Low-Cost Soil Water Content Sensors. Sensors 2021, 21, 5110. https://doi.org/10.3390/s21155110

AMA Style

Placidi P, Morbidelli R, Fortunati D, Papini N, Gobbi F, Scorzoni A. Monitoring Soil and Ambient Parameters in the IoT Precision Agriculture Scenario: An Original Modeling Approach Dedicated to Low-Cost Soil Water Content Sensors. Sensors. 2021; 21(15):5110. https://doi.org/10.3390/s21155110

Chicago/Turabian Style

Placidi, Pisana, Renato Morbidelli, Diego Fortunati, Nicola Papini, Francesco Gobbi, and Andrea Scorzoni. 2021. "Monitoring Soil and Ambient Parameters in the IoT Precision Agriculture Scenario: An Original Modeling Approach Dedicated to Low-Cost Soil Water Content Sensors" Sensors 21, no. 15: 5110. https://doi.org/10.3390/s21155110

APA Style

Placidi, P., Morbidelli, R., Fortunati, D., Papini, N., Gobbi, F., & Scorzoni, A. (2021). Monitoring Soil and Ambient Parameters in the IoT Precision Agriculture Scenario: An Original Modeling Approach Dedicated to Low-Cost Soil Water Content Sensors. Sensors, 21(15), 5110. https://doi.org/10.3390/s21155110

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop