Next Article in Journal
Evaluation of the Flow Properties of Coffea canephora During Storage as Affected by Roasting Level, Particle Size, and Storage Temperature
Previous Article in Journal
From Simulation to Field Validation: A Digital Twin-Driven Sim2real Transfer Approach for Strawberry Fruit Detection and Sizing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

What Is the Optimal Sampling Time of Environmental Parameters? Fourier Analysis and Energy Harvesting to Reduce Sensors Consumption in Smart Greenhouses

1
Department of Information Engineering, University of Pisa, Via G. Caruso 16, 56122 Pisa, Italy
2
Department of Information Engineering, CNIT—University of Pisa, Via G. Caruso 16, 56122 Pisa, Italy
*
Author to whom correspondence should be addressed.
AgriEngineering 2025, 7(3), 82; https://doi.org/10.3390/agriengineering7030082
Submission received: 14 February 2025 / Revised: 6 March 2025 / Accepted: 12 March 2025 / Published: 17 March 2025

Abstract

:
Smart greenhouses offer crucial solutions for reducing our atmospheric impact and resource waste. However, two fundamental challenges persist in their implementation, massive energy consumption and a high level of human intervention, particularly for sensor battery replacement or recharging. Unfortunately, sensors are indispensable in greenhouses and agriculture, such as for monitoring environmental parameters for air quality assessment. Therefore, while sensors cannot be eliminated, it is essential to optimize their energy consumption. This work introduces an energy-efficient monitoring system for smart greenhouses, aiming to reduce the energy consumption of individual sensors and enhance system sustainability. This study focuses on optimizing the sampling intervals of commonly monitored environmental parameters to minimize sensor energy usage while maintaining data acquisition accuracy adequate for the intended purpose. Additionally, to further reduce battery energy draw, an energy harvesting system using solar panels was implemented. In conclusion, adopting an optimal sampling strategy for each parameter significantly reduces energy consumption compared to fixed, inefficient sampling intervals commonly used in commercial weather stations. Furthermore, by employing an energy harvesting system for each sensor, leveraging the light emitted by greenhouse lamps and external sources ensures the autonomy of sensors within the greenhouse, thereby minimizing the need for human intervention for battery replacement and recharging.

1. Introduction

The pressing issue of our time is climate change and its impact on people’s lives, marked by increasingly frequent extreme events such as torrential rainstorms and prolonged droughts. One particularly affected sector is agriculture, where climate change has a significant impact, sometimes forcing farmers to switch crop types in the same area as the environment becomes unsuitable for previously cultivated species, leading to a migration of crops.
The adoption of smart greenhouses could be a viable solution to mitigate the effects of climate change and rising temperatures on populations. Smart greenhouses, equipped with intelligent monitoring systems, can reduce the environmental impact and resource waste, eliminating the need for crop migration and even reducing reliance on food imports from other countries. This is achieved by adapting and controlling the greenhouse’s internal microclimate to suit the specific needs of the crops being cultivated.
However, two major challenges arise with these implementations—excessive energy consumption and the high frequency of human intervention—particularly for recharging or replacing batteries in devices installed inside and outside the system. Monitoring both internal [1] and external [2] parameters is essential for air quality assessment [3], including factors such as temperature, humidity, CO2, SO2, and PM10 [4]. This monitoring is also crucial for resource management, particularly water usage [5]. These parameters are monitored at varying sampling frequencies, ranging from seconds [6] to hours [7], depending on the monitoring system used and, less frequently, on the parameters being measured. As observed in the agricultural market, companies offering environmental monitoring systems provide products with highly variable sampling intervals, as summarized in Table 1, often without a specific criterion.
Regarding the energy efficiency of devices installed in greenhouses, the studies in the literature propose various methodologies. One approach involves adapting the data rate based on the distance between the end-node and the gateway to minimize energy consumption [18]. Another method adjusts the transmission power by considering the signal-to-noise ratio [19]. Additionally, transmission frequency adaptation is explored as a strategy [20]. For instance, the work [21] plans and optimizes the placement of cluster heads to balance data traffic using priority queuing with fuzzy logic. This demonstrates that it is possible to minimize and distribute energy consumption across the network. Another approach focuses on managing the sleep and active periods of both end-nodes and gateways to reduce the overall energy consumption [22].
Today, any well-equipped greenhouse integrates artificial lighting alongside natural sunlight. Therefore, a system capable of harvesting luminous flux and converting it into electrical power to supply the underlying devices via solar panels can significantly enhance the greenhouse’s efficiency by potentially reusing wasted energy [23]. Another example of reusing energy emitted by lamps is employing two different communication methods for downlink and uplink. The study [24] leverages and optimizes light emissions from lamps using Light Fidelity (Li-Fi) technology to send commands to the end-nodes. For data transmission, it employs Chirp Spread Spectrum (CSS) modulation, thereby optimizing energy usage for both illumination and command reception.
This paper investigates and analyzes the optimal sampling times for monitoring environmental parameters critical to plant growth. Additionally, it seeks to better understand how this sampling interval varies across parameters and seasons. To achieve this, the analysis employs frequency-domain techniques for time series data, a commonly used approach in telecommunications and signal processing, which is equally valuable in agriculture. The second part of this study focuses on outlining the key steps for designing and implementing an energy harvesting system, emphasizing the reuse of energy emitted by lamps and sunlight. The last goal is to extend the sensor’s lifespan, making it independent of battery life and significantly reducing the need for human intervention in battery management.
This paper is organized as follows: Section 2 outlines the proposed methodology, divided into two main areas: the analysis of time series for environmental parameters, and the design of an energy harvesting system to improve the energy efficiency of the smart greenhouse. Section 3 presents and discusses the results obtained, and Section 4 concludes the work.

2. Methods and Materials

The following section describes and presents the steps to achieve the results, which are subsequently discussed in Section 3. As previously mentioned, this study is divided into two main parts:
  • Section 2.1: Analysis of environmental parameters to determine the optimal sampling interval and its variations, aiming to reduce energy consumption by managing the sleep and active phases of individual sensors.
  • Section 2.2: Design and implementation of an energy harvesting system to utilize energy from solar radiation and, more importantly, reuse the artificial light emitted by lamps. This approach seeks to improve the energy efficiency and reduce the sensor’s reliance on battery power.

2.1. Optimizing Sampling Intervals for Energy-Efficient Sensor Operation

To optimize the energy consumption of sensors installed in greenhouses, we firstly determine the optimal sampling time for the environmental parameters that we aim to monitor. In this study, we have analyzed and monitored temperature and humidity, both external and internal, across four different greenhouses located in the same area. Figure 1 illustrates the workflow followed for the sampling time analysis.
In general, the workflow for determining the optimal sampling time of the monitored parameter can be applied to any time series values and is independent of the specific scenario in which it is implemented, such as the type of greenhouse or sensor used. The parameter for which the optimal sampling interval was determined was first monitored by collecting and storing samples in a database. Once the dataset is created, it undergoes analysis by dividing it into daily segments. For each day, the signal spectrum is computed using transformations such as the Discrete Fourier Transform (DFT), Fast Fourier Transform (FFT), Short-Time Fourier Transform (STFT), Wavelet Transform, or Hilbert Transform. These methods differ in terms of resolution, computational speed, and time–frequency analysis capabilities. In this study, as detailed later, the DFT is employed due to its simplicity and the fact that the signal under analysis is discrete in time. The variation in climate, depending on the location and region, affects the spectrum of the sampled signal. If the parameter exhibits greater fluctuations within the analysis window, the frequency spectrum will be broader, and vice versa. The frequency spectrum is then filtered to remove irrelevant signal frequencies. Finally, to determine the specific sampling interval for the selected time window, the well-known Nyquist theorem is applied.
More specifically, we began by monitoring and collecting temperature and humidity data provided by the greenhouse sensors with a sampling interval of 5 min (as explained in detail in Section 3.1), which we assume to be significantly smaller than the optimal sampling interval since the average variation between consecutive samples is very low, as demonstrated in Section 3.1, providing minimal additional information. After collecting the data, we cleaned any errors or missing entries encountered during transmission, creating a dataset that serves as the reference for this study.
During the data analysis process, we first divided the data into daily subsets and then processed them by applying the Discrete Fourier Transform (DFT), as described in Equation (1). The DFT is the most important discrete transform used for Fourier analysis in many practical applications. In digital signal processing, a function represents any quantity or signal that varies over time (e.g., the pressure of a sound wave, a radio signal, or daily temperature readings) sampled over a finite time interval. The DFT transforms a sequence of N complex numbers x n into another sequence of complex numbers X k .
X k = n = 0 N 1 x n · e i 2 π k n / N
where X k is the signal represented in the frequency domain. After computing the signal spectrum, it is passed through a low-pass filter, retaining only the portion of the spectrum where the majority of the signal’s energy resides. At this stage, the maximum spectral frequency ( f m a x ) and the optimal sampling time ( T o p t ) for the day can be extracted using Equation (2), considering the Nyquist theorem. The theorem states that the sampling frequency must be at least twice the maximum frequency component of the signal being sampled to accurately reconstruct the original signal.
T o p t = 1 f S a m p l i n g O p t = 1 2 × f m a x
Once T o p t is calculated on a day-by-day basis, the next step involves performing an energy analysis of the individual Micro-Controller Unit (MCU) board to which the sensor is connected, in order to optimize its energy consumption. The steps followed for this analysis are outlined in Figure 2.
Upon completing the energy consumption analysis, the average current consumption (ACC) can be calculated by measuring the current consumption of the MCU board in its various states and then applying Equation (3).
A C C = T T X × I T X + T O p t T T X × I D S T O p t
Here, I T X represents the current consumed in transmission mode, I R X in receiver mode, and I D S in deep sleep mode. Meanwhile, T T X is the time taken to transmit the message, and T o p t is the sampling period of the environmental parameter.
At the end, based on the duration of sunlight ( h s u n l i g h t ) and night-time ( h n i g h t ) hours in the greenhouse, Equation (4) can be used to calculate the minimum battery capacity ( B C m i n ) required to provide sufficient energy for the MCU board to operate throughout the night, assuming that sufficient energy is harvested during the day to power the board, as is the case in our work.
B C m i n = A C C × h n i g h t = = T T X × I T X + T O p t T T X × I D S T O p t × h n i g h t = = 2 × T T X × I T X + 1 2 × f m a x × T T X 2 × f m a x × I D S × f m a x × h n i g h t

2.2. Design of the Energy Harvesting System

We assumed the presence of high-power LEDs in a smart greenhouse to provide artificial illumination even when sunlight is low or absent [25]. To make the duration of the MCU board independent from battery life, we have proposed the workflow, as shown in Figure 3. The goal is to convert and reuse the energy emitted by the lamps and external sources, such as sunlight, using small solar panels directly attached to the individual MCU boards. The aim is to fully power the boards during the day and recharge the mini battery to supply energy during the night, when both lamps and sunlight are absent.
Given the size of the area to be illuminated (A[m2]) and the optimal lighting power ( P L i g h t i n g [lumen]) required for plant growth (provided by both sunlight and artificial lamps), the estimated luminous flux ( E L F [lux]) can be calculated using Equation (5).
E L F = P L i g h t i n g A
Then, we convert them from lux to W/m2 ( L u m e n 2 W m 2 ) using Equation (6).
L u m e n 2 W m 2 = E L F 685
To estimate the current provided by the solar panel ( I S P [A]) with a certain area ( A S P [m2]), efficiency ( η ), and provided voltage ( V S P [V]), Equation (7) is used.
I S P = L u m e n 2 W m 2 × A S P × η V S P = P L i g h t i n g × A S P × η 685 × A × V S P

2.3. Materials

To collect environmental data both inside and outside the greenhouses, we utilized a central weather station, the Davis Vantage Pro 2 [26]. This weather station is capable of measuring wind direction and speed, air temperature with an accuracy of ±0.3 °C, air humidity with an accuracy of ±2%, atmospheric pressure, and rainfall. The data collection system consists of the central station, from which we collect external temperature and humidity data, and four distributed units, each located within a greenhouse, with the same measurement accuracy. The four greenhouses are located in the same area in Pisa, Italy. The data collected from the five stations constitute the dataset under study in this work.
Assuming the same network architecture as in our previous work [25], the test MCU board used was the Heltec WiFi LoRa v3 [27], which supports communication via both Wi-Fi and long-range technology (LoRa) at 868 MHz. The studies in the literature demonstrate that LoRa modulation is more energy-efficient compared to Wi-Fi; therefore, in this study, the boards communicate using LoRa modulation. The sensor used to collect air temperature and humidity data were the DHT11 [28]. The Heltec board was powered by a polycrystalline solar panel from Star Solar, model CNC85x115-18 [29], with dimensions of 85 mm × 115 mm. The panel delivers a maximum power of 1.5 W, a maximum voltage of 18 V, and a maximum current of 83 mA before being connected to the energy harvesting module EH302 [30]. To power the board during the night, a Li-Po battery [31] with a nominal voltage of 3.7 V and a capacity of 1350 mAh was used.
Finally, to analyze the power consumption of the Heltec board, the Qoitech Otii Arc PRO device [32] was used. This device serves as a two-quadrant source measure unit with constant voltage or constant current sourcing and sinking capabilities. It also features a high-precision multichannel multimeter and a linear power supply (0.5–5 V). The Otii Arc PRO functions as a power analyzer or profiler, enabling real-time recording and display of currents, voltages, and/or UART logs. It provides current measurements with nanoampere resolution and supports a sampling rate of up to 4 ksps.

3. Results

In this section, we present the results obtained from determining the optimal sampling times using frequency domain analysis (see Section 3.1). Subsequently, we analyze the energy consumption of the MCU board under test for implementing an optimized energy harvesting system aimed at reducing the board’s reliance on battery power (see Section 3.2).

3.1. Determination of the Optimal Sampling Times

To determine the optimal sampling time, it is first necessary to analyze historical data. In our case, we monitored and saved temperature and humidity values, both external and internal, from four different greenhouses located in the same area in Pisa, Italy. The data were collected every 5 min, used as the reference time ( T R e f ), throughout the entire year 2023. The decision to use a reference sampling interval of 5 min is based on the fact that numerous studies in the literature define the sensor sampling interval as 5 min [33]. Moreover, many weather stations have a sampling interval set to a value lower than or equal to our reference interval T R e f [8,9,10,11,12,13,14]. Therefore, our approach aims to ensure comparability with existing research by adopting this reference interval. To calculate the optimal sampling time ( T O p t ), we performed frequency domain analysis on a day-by-day basis using the Discrete Fourier Transform (DFT) implemented in MATLAB R2023b [34], as described in Section 2.1. To better understand the error introduced in reconstructing the trend sampled with T O p t compared to T R e f , we employed various interpolation methods to reconstruct the missing samples resulting from the less frequent optimal sampling. Several interpolation methods were tested, including linear, polynomial, rational, and spline interpolation. Among these, the linear interpolation method was selected as it produced a reconstructed signal with lower Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and Mean Absolute Percentage Error (MAPE) in our case. The MSE quantifies how much the interpolated signal ( s ˆ ) deviates from the real signal (s) on average, emphasizing larger errors due to squaring, as in Equation (8).
MSE = 1 n i = 1 n ( s i s ˆ i ) 2 ,
where n is the total number of observation and i is the punctual observation.
The RMSE is the square root of the MSE. It provides an interpretable error metric in the same unit as the original data. The Equation is
RMSE = 1 n i = 1 n ( s i s ˆ i ) 2 .
The MAPE evaluates the average percentage error between the real and interpolated signals, offering a normalized measure of accuracy, as depicted in Equation (10).
MAPE = 1 n i = 1 n s i s ˆ i s i × 100 .
Additionally, the average variation between adjacent samples ( A V A S R e f and A V A S O p t in Equation (11)) is
A V A S = 1 N 1 i = 1 N 1 | x i + 1 x i | ,
where x i represents the value of the i-th sample and N is the total number of samples; the average error of the daily minimum ( e D a y M i n in Equation (12)) is
e D a y M i n = 1 D j = 1 D | min ( x j , R e f ) min ( x j , O p t ) | ,
and the average error of the daily maximum ( e D a y M a x in Equation (13)) is
e D a y M a x = 1 D j = 1 D | max ( x j , R e f ) max ( x j , O p t ) | ,
where x j , R e f is the set of daily reference samples for day j, x j , O p t is the set of optimal daily samples for day j, and D is the total number of days, which were calculated for the entire year as well as across the four seasons: winter (1 January 2023–19 March 2023, and 22 December 2023–31 December 2023), spring (20 March 2023–20 June 2023), summer (21 June 2023–22 September 2023), and autumn (23 September 2023–21 December 2023). This analysis was conducted to assess whether the potential errors introduced are negligible for our purposes.
Table 2 presents all the aforementioned indices computed as annual averages, while Table 3, Table 4, Table 5 and Table 6 display the seasonal averages for winter, spring, summer, and autumn, respectively, for external temperature (OutTemp), external humidity (OutHum), and internal temperature and humidity (InTemp and InHum) for each greenhouse, from 1 to 4.
In Table 2, Table 3, Table 4, Table 5 and Table 6, it can be observed that the optimal sampling time is significantly longer than the reference time of 5 min, both across seasons and for the parameters monitored inside and outside the greenhouses. In Figure 4, it is also possible to observe the trends in sampling intervals across different seasons.
As expected, less frequent sampling introduces reconstruction errors in the signal, which can be considered negligible. Typically, the primary indicators used in weather stations or environmental parameter trends are the daily minimum and maximum values. Figure 5 shows the minimum (a) and maximum (b) daily error across seasons, as well as the error for external and internal temperature and humidity in the greenhouses, with the latter being averaged across the greenhouses.
The annual and seasonal average errors for internal and external parameters are reported in the tables and figures. It can be seen that the committed error for the daily minimum ranges from 0.0159 °C to 0.1126 °C for temperature and from 0.2243% to 1.3474% for humidity. For the daily maximum, the error ranges from 0.0955 °C to 0.2452 °C for temperature and from 0.0511% to 0.4868% for humidity. It is important to note that in our case, the sensitivity of the sensors used is ±0.3 °C and ±2%. Thus, the errors in detecting the daily minimum and maximum for both temperature and humidity always remain below the sensitivity threshold, making them negligible. With this conclusion, it is possible to adopt the new sampling times ( T O p t ) to optimize the power consumption of the MCU boards.

3.2. Energy Consumption Reduction

To better understand the benefits of determining the optimal sampling time, following the frequency domain analysis, we analyzed the current consumption of the MCU used in our system through the Otii Arc PRO device to compute A C C and B C m i n , as described in Section 2.1. Since our MCU transmits messages using LoRa modulation at 868 MHz, we measured the current consumption in three different operational modes: transmission mode, receiver mode, and deep sleep mode.
Figure 6 illustrates the current consumed in transmission mode ( I T X ) as a function of transmission power.
In receiver mode, the current consumption ( I R X ) is 58 mA, while in deep sleep mode ( I D S ), it is 1.75 mA. To calculate A C C O p t , it is necessary to understand the time required by the MCU to send a typical LoRa message ( T T X ).
Table 7 displays the time required to transmit a 200 bytes LoRa message assumed to be the typical size for IoT sensor messages at different bandwidths of 125, 250, and 500 kHz ( t 125 , t 250 , and t 500 , respectively). The transmission times are also shown relative to the LoRa spreading factors ( S F 7 to S F 12 ) that can be employed.
As an illustrative example and to demonstrate that the current consumption can be modeled as constant across different MCU operational modes, Figure 7 shows the current consumption over time when the MCU is in transmission mode and deep sleep mode during two distinct periods.
To calculate A C C O p t using T O p t , B C m i n O p t (as described in Section 2.1), and I S P O p t (as detailed in Section 2.2), we considered the worst-case scenario, where the MCU operates in transmission mode at 15 dBm, with a bandwidth of 125 kHz and SF12. Using the annual average values of T O p t presented in Table 2, Table 8 provides the average current consumption, minimum battery capacity, current provided by the solar panel, and the percentual energy reduction ( P E R ).
The P E R is defined as the percentage reduction in current consumption when using T O p t as the sampling time compared to T R e f . It is important to note that the reference sampling time ( T R e f ) is 5 min, from which A C C R e f , B C m i n R e f , and I S P R e f are derived. These values are 6.1378 mA, 36.8266 mAh, and 8.1837 mA, respectively, considering h n i g h t as six hours.
As shown in Table 8, when using T O p t instead of T R e f , the PER ranges from 61.3072% to 63.923%, indicating a significant reduction in current consumption. Considering the worst-case scenario to determine the current that the solar panel must supply to the MCU ( I S P O p t ) as 3.1665 mA, it is possible to calculate the amount of ELF required in the greenhouse backward, as described in Section 2.2, to ensure that the solar panel provides a sufficient current value to make the MCU’s operation independent of the battery.
In this scenario, we consider a solar panel, described in Section 2.3, with an efficiency ( η ) of 0.12 and dimensions of 9.775 × 10 3 m2, which must supply 3.7 V to the MCU. Using the theoretical formula from Section 2.2, the required ELF was calculated to be 6842 lux to keep the system active. Typically, in greenhouses, as shown in one of our previous studies [25], the ELF was approximately 50,000 lux, which is significantly higher than the calculated minimum ELF. Based on this observation, we can conclude that the solar panel considered, when installed in the described environment, is capable of supplying a current greater than the minimum required, adequately powering the MCU board daily.

3.3. Considerations

In the previously described results, we demonstrate how an optimal sampling time can reduce the energy consumption of individual sensors installed in the greenhouse. To further reduce the energy consumption of individual sensors, machine learning or predictive algorithms can be employed to optimize the sampling frequency in real-world scenarios. By predicting future time windows, the deep sleep mode of the sensor’s MCU can be extended. Although this approach is feasible, it introduces a limitation: the methodology would no longer be immediately applicable to different scenarios, climates, and crop types. This is because the neural network model requires training and must learn the temporal patterns of the parameter within a specific environment, which typically varies from one greenhouse to another.
For the calculation of the current consumption and the design of the energy harvesting system, we considered the annually averaged T O p t derived from the mean of the seasonal T O p t values. Overall, the annual current consumption remains unchanged when considering the four seasonal T O p t values separately. Table 9, Table 10, Table 11 and Table 12 illustrate how the reconstruction of parameter trends and the identification of daily minima and maxima vary for the four parameters under consideration: outdoor air temperature, outdoor air humidity, greenhouse air temperature, and greenhouse air humidity. The latter two parameters are averaged across the four greenhouses under study.
From the resulting values, it is evident that adopting a dynamic sampling time that varies with the seasons reduces the error in identifying the daily minimum and maximum of each parameter. It can be observed that, although the total energy consumption over a year remains unchanged, dynamically adjusting the sampling time reduces the error in signal reconstruction and in the identification of daily minimum and maximum values. Specifically, for an external temperature, the reduction is 0.08969% in identifying the minimum and 1.2358% in identifying the maximum. A similar reduction is observed for the other parameters: external humidity of 1.32804% and 0.04587%, internal greenhouse temperature of 1.7963% and 2.03009%, and internal greenhouse humidity of 0.04481% and 2.83654%.

4. Conclusions

In conclusion, this work aims to address two major challenges associated with the implementation of smart greenhouses—excessive energy consumption and the high frequency of human intervention—particularly for recharging or replacing batteries in devices installed both inside and outside the system. Specifically, this study employed a frequency domain approach to determine the optimal sampling time for commonly monitored parameters, such as indoor and outdoor air temperature and humidity, in the context of greenhouses. Sampling intervals commonly used in these systems and weather stations range between 5 and 15 min. However, as demonstrated in this study, these intervals are inefficient and energy-intensive. We propose adapting the sampling time based on the parameter being measured (e.g., temperature sampling time: 41.75–48.42 min; humidity sampling time: 42.24–46.06 min) and potentially adjusting it dynamically according to seasonal changes. This approach reconstructs temporal trends with lower errors in terms of the MSE, RMSE, and MAPE. Additionally, by optimizing the sampling time and thereby reducing the energy consumption of individual sensors, and with the aid of greenhouse lamps providing a consistent light flux, an energy harvesting system was designed and tested using a solar panel. This system enables the use of sensors with smaller battery capacities, making their operation independent of battery life. Consequently, human intervention for battery replacement and recharging is significantly reduced, and the greenhouse’s energy efficiency is enhanced by reusing the light flux from lamps or external sources.

Author Contributions

Conceptualization, C.B., D.A. and S.G.; methodology, C.B., D.A. and S.G.; investigation, C.B.; writing—original draft preparation, C.B.; review and editing, S.G. and D.A.; supervision, D.A. and S.G.; project administration, S.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data are contained within this article.

Acknowledgments

This work was partially supported by the Italian Ministry of Research (MUR) in the framework of the CrossLab & Forelab Projects (Departments of Excellence), and by the National Research Centre for Agricultural Technologies (CN00000022—program “AGRITECH”).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Permana, A.F.; Kuncoro, C.B.D. Autonomous Temperature and Humidity Wireless Sensor Node for Indoor Air Quality Monitoring Application. In Proceedings of the 2021 5th International Conference on Informatics and Computational Sciences (ICICoS), Semarang, Indonesia, 24–25 November 2021; pp. 272–276. [Google Scholar] [CrossRef]
  2. Rachana, M.; Abhilash, B.; Meghana, P.; Mishra, V.; Rudraswamy, S.B. Design and deployment of sensor system—Envirobat 21, an urban air quality monitoring system. In Proceedings of the 2017 International Conference on Electrical, Electronics, Communication, Computer, and Optimization Techniques (ICEECCOT), Mysuru, India, 15–16 December 2017; pp. 412–415. [Google Scholar] [CrossRef]
  3. Tembhurne, V.K.; Shinde, V.D.; Kumar, S.; Shrimali, M.; Chhabra, G.; Quadri, M.N.; Rajpoot, V. IoT-based Air pollution Monitoring System to Measure Air Quality on Cloud Storage. In Proceedings of the 2023 2nd International Conference on Paradigm Shifts in Communications Embedded Systems, Machine Learning and Signal Processing (PCEMS), Nagpur, India, 5–6 April 2023; pp. 1–6. [Google Scholar] [CrossRef]
  4. Magno, M.; Aoudia, F.A.; Gautier, M.; Berder, O.; Benini, L. WULoRa: An energy efficient IoT end-node for energy harvesting and heterogeneous communication. In Proceedings of the Design, Automation & Test in Europe Conference & Exhibition (DATE), Lausanne, Switzerland, 27–31 March 2017; pp. 1528–1533. [Google Scholar] [CrossRef]
  5. Pomoni, D.I.; Koukou, M.K.; Vrachopoulos, M.G.; Vasiliadis, L. A Review of Hydroponics and Conventional Agriculture Based on Energy and Water Consumption, Environmental Impact, and Land Use. Energies 2023, 16, 1690. [Google Scholar] [CrossRef]
  6. Udrea, I.; Gheorghe, V.I.; Alionte, C.G.; Dogeanu, A.M.; Cartal, L.A. IoT solution for thermal comfort and air quality monitoring. In Proceedings of the 2023 15th International Conference on Electronics, Computers and Artificial Intelligence (ECAI), Bucharest, Romania, 29–30 June 2023; pp. 1–6. [Google Scholar] [CrossRef]
  7. Ullah, I.; Fayaz, M.; Khan, M.; Kim, D. An optimization scheme for IoT based smart greenhouse climate control with efficient energy consumption. Computing 2022, 104, 433–457. [Google Scholar] [CrossRef]
  8. Hashim, H.; Hazwan, M.N.; Saad, P.S.M.; Harun, Z. The Real-Time Monitoring of Air Quality Using IOT-Based Environment System. In Proceedings of the 2023 19th IEEE International Colloquium on Signal Processing & Its Applications (CSPA), Kedah, Malaysia, 3–4 March 2023; pp. 54–58. [Google Scholar] [CrossRef]
  9. Vantage PRO 2 Wired. Available online: https://www.zetalab.it/prodotto/stazione-meteo-wireless-vantage-pro2/?srsltid=AfmBOoqVc6dAfxRMsqeIhj9F-0SV5balJjIP8M-W90l5L7coDJX5isyp (accessed on 17 April 2024).
  10. Davis Vantage PRO 2 Wired. Available online: https://shop.meteoproject.it/prodotto/davis-vantage-pro-2-cablata/ (accessed on 17 April 2024).
  11. ISS Wired. Available online: https://shop.meteoproject.it/prodotto/iss-cablato/ (accessed on 17 April 2024).
  12. Ecowitt GW1001. Available online: https://shop.meteoproject.it/prodotto/ecowitt-gw1001-stazione-meteo/ (accessed on 17 April 2024).
  13. Ecowitt GW1003. Available online: https://shop.meteoproject.it/prodotto/ecowitt-gw1003/ (accessed on 17 April 2024).
  14. MeteoSense 4.0. Available online: https://www.netsens.it/prodotti/stazioni-meteo-professionali-20/ (accessed on 17 April 2024).
  15. Weather Station and Webcam. Available online: https://shop.meteoproject.it/prodotto/kit-standard-stazione-meteo-e-webcam/ (accessed on 17 April 2024).
  16. Ecowitt WH6006E. Available online: https://shop.meteoproject.it/prodotto/ecowitt-wh6006e/ (accessed on 17 April 2024).
  17. AgriSense. Available online: https://www.netsens.it/agricoltura-4-0/ (accessed on 17 April 2024).
  18. Islam, S.; Akhtar, M.J.; Khan, M.N.I.; Islam, S.J. Energy Balanced Clustering using Balancing Nodes for Wireless Sensor Networks. In Proceedings of the 2019 International Conference on Computer Communication and Informatics (ICCCI), Coimbatore, India, 23–25 January 2019; pp. 1–4. [Google Scholar] [CrossRef]
  19. Chevillat, P.; Jelitto, J.; Truong, H.L. Dynamic data rate and transmit power adjustment in IEEE 802.11 wireless LANs. Int. J. Wirel. Inf. Netw. 2005, 12, 123–145. [Google Scholar] [CrossRef]
  20. González-Palacio, M.; Tobón-Vallejo, D.; Sepúlveda-Cano, L.M.; Rúa, S.; Le, L.B. Machine-Learning-Based Combined Path Loss and Shadowing Model in LoRaWAN for Energy Efficiency Enhancement. IEEE Internet Things J. 2023, 10, 10725–10739. [Google Scholar] [CrossRef]
  21. Rahimi, P.; Chrysostomou, C. Improving the Network Lifetime and Performance of Wireless Sensor Networks for IoT Applications Based on Fuzzy Logic. In Proceedings of the 2019 15th International Conference on Distributed Computing in Sensor Systems (DCOSS), Santorini Island, Greece, 29–31 May 2019; pp. 667–674. [Google Scholar] [CrossRef]
  22. Michalik, L.S.; Guegan, L.; Raïs, I.; Anshus, O.; Bjørndalen, J.M. LoRaLitE: LoRa protocol for Energy-Limited environments. In Proceedings of the 2022 30th International Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems (MASCOTS), Nice, France, 18–20 October 2022; pp. 73–80. [Google Scholar] [CrossRef]
  23. Gong, L.; Sharma, A.; Henry, J.; Youssef, M. A Novel Solar Harvesting Modular Wireless Sensor Mote for Green House Applications: Design & Implementation. In Proceedings of the 2021 IEEE Energy Conversion Congress and Exposition (ECCE), Virtual, 10–14 October 2021; pp. 802–807. [Google Scholar] [CrossRef]
  24. Guzman, B.G.; Talavante, J.; Fonseca, D.F.; Mir, M.S.; Giustiniano, D.; Obraczka, K.; Loik, M.E.; Childress, S.; Wong, D.G. Toward Sustainable Greenhouses Using Battery-Free LiFi-Enabled Internet of Things. IEEE Commun. Mag. 2023, 61, 129–135. [Google Scholar] [CrossRef]
  25. Bua, C.; Adami, D.; Giordano, S. GymHydro: An Innovative Modular Small-Scale Smart Agriculture System for Hydroponic Greenhouses. Electronics 2024, 13, 1366. [Google Scholar] [CrossRef]
  26. Weather Station. Available online: https://www.meteoproject.it/davis-vantage-pro2.php (accessed on 11 April 2024).
  27. Heltec WiFi LoRa V3. Available online: https://heltec.org/project/wifi-lora-32-v3/ (accessed on 11 April 2024).
  28. DHT11 Datasheet. Available online: https://www.mouser.com/datasheet/2/758/DHT11-Technical-Data-Sheet-Translated-Version-1143054.pdf (accessed on 11 April 2024).
  29. Siaw, F.L.; Thio, T.H.G.; Lau, W.H. Modeling and simulation of solar photovoltaic array with partial shading conditions for portable solar charger. In AIP Conference Proceedings; AIP Publishing: Melville, NY, USA, 2023; Volume 2847. [Google Scholar]
  30. Energy Harvesting Module EH302. Available online: https://www.mouser.it/datasheet/2/8/EH300-1651600.pdf (accessed on 11 April 2024).
  31. Li-Po Battery. Available online: https://www.amazon.it/EEMB-ricaricabile-Connettore-conferma-dispositivo-dellacquisto/dp/B09M5VV3MM?th=1 (accessed on 11 April 2024).
  32. Otii Arc Pro. Available online: https://www.qoitech.com/otii-arc-pro/ (accessed on 11 April 2024).
  33. Liu, Y.; Li, D.; Wan, S.; Wang, F.; Dou, W.; Xu, X.; Li, S.; Ma, R.; Qi, L. A long short-term memory-based model for greenhouse climate prediction. Int. J. Intell. Syst. 2022, 37, 135–151. [Google Scholar] [CrossRef]
  34. Isen, F.W. The DFT. In DSP for MATLAB and LabVIEW: Volume II: Discrete Frequency Transforms; Springer International Publishing: Cham, Switzerland, 2008; pp. 101–205. [Google Scholar] [CrossRef]
Figure 1. Sampling time analysis.
Figure 1. Sampling time analysis.
Agriengineering 07 00082 g001
Figure 2. Energy consumption analysis.
Figure 2. Energy consumption analysis.
Agriengineering 07 00082 g002
Figure 3. Estimation dimensions of solar panel.
Figure 3. Estimation dimensions of solar panel.
Agriengineering 07 00082 g003
Figure 4. Sampling time trends across seasons.
Figure 4. Sampling time trends across seasons.
Agriengineering 07 00082 g004
Figure 5. Minimum (a) and maximum (b) daily error across seasons.
Figure 5. Minimum (a) and maximum (b) daily error across seasons.
Agriengineering 07 00082 g005
Figure 6. TX mode current consumption.
Figure 6. TX mode current consumption.
Agriengineering 07 00082 g006
Figure 7. MCU current consumption.
Figure 7. MCU current consumption.
Agriengineering 07 00082 g007
Table 1. Common monitoring system’s sampling interval.
Table 1. Common monitoring system’s sampling interval.
2.5 s16 s16.5 s5 min10 min15 min
[8,9,10]
[11]
[12]
[13,14]
[15,16]
[17]
Table 2. Annual average indices.
Table 2. Annual average indices.
  T Opt [min]MSERMSEMAPE AVAS Ref AVAS Opt e DayMin e DayMax
OutTemp36.170.030.140.710.100.480.090.15
OutHum35.940.910.870.830.612.061.050.44
InTemp143.440.140.230.460.541.070.040.23
InHum142.240.760.550.581.392.630.400.13
InTemp244.190.090.210.530.481.000.040.15
InHum246.061.020.640.721.422.850.520.16
InTemp341.750.050.150.320.470.890.030.10
InHum345.310.670.570.641.292.560.340.17
InTemp448.420.090.180.440.440.950.030.21
InHum444.251.320.790.651.582.650.640.16
Table 3. Winter average indices.
Table 3. Winter average indices.
  T Opt [min]MSERMSEMAPE AVAS Ref AVAS Opt e DayMin e DayMax
OutTemp30.530.020.121.250.100.370.090.11
OutHum38.270.730.790.770.561.850.760.49
InTemp142.960.210.200.670.470.860.050.25
InHum141.570.810.510.451.232.180.470.12
InTemp237.620.050.140.760.350.550.040.18
InHum243.350.670.560.381.302.160.510.12
InTemp341.010.030.120.360.360.680.040.10
InHum344.770.230.350.390.821.550.280.15
InTemp441.960.140.150.600.510.900.020.24
InHum441.980.570.400.331.272.190.390.08
Table 4. Spring average indices.
Table 4. Spring average indices.
  T Opt [min]MSERMSEMAPE AVAS Ref AVAS Opt e DayMin e DayMax
OutTemp32.590.030.130.620.100.410.060.13
OutHum34.220.980.890.880.652.060.970.43
InTemp141.960.160.280.470.651.210.020.22
InHum139.770.930.540.671.612.870.220.13
InTemp242.800.120.230.490.581.090.040.14
InHum247.191.880.841.111.703.450.630.21
InTemp338.510.080.180.350.591.010.050.12
InHum340.920.920.660.791.582.880.310.16
InTemp440.710.070.180.320.520.940.020.20
InHum440.892.000.960.821.993.000.650.19
Table 5. Summer average indices.
Table 5. Summer average indices.
  T Opt [min]MSERMSEMAPE AVAS Ref AVAS Opt e DayMin e DayMax
OutTemp41.950.040.170.460.110.590.110.20
OutHum35.881.120.990.960.672.301.350.40
InTemp148.160.140.290.420.611.340.040.23
InHum141.970.810.610.701.522.890.420.14
InTemp248.890.130.270.400.571.330.040.17
InHum245.960.890.610.811.473.120.370.21
InTemp344.560.050.160.260.480.990.020.10
InHum348.300.860.660.751.423.090.300.20
InTemp459.510.070.220.420.361.060.040.21
InHum447.831.560.990.831.622.840.850.20
Table 6. Autumn average indices.
Table 6. Autumn average indices.
  T Opt [min]MSERMSEMAPE AVAS Ref AVAS Opt e DayMin e DayMax
OutTemp38.820.030.150.480.090.520.100.16
OutHum35.790.740.800.700.531.971.080.44
InTemp139.270.030.120.230.380.730.030.21
InHum146.900.390.500.411.112.430.540.15
InTemp247.020.050.160.330.380.900.020.10
InHum247.730.430.500.431.122.440.620.05
InTemp343.920.030.130.290.380.790.020.10
InHum349.260.540.610.491.242.500.590.19
InTemp452.530.110.170.470.310.780.030.13
InHum448.010.620.630.451.082.280.610.12
Table 7. LoRa message transmission time in seconds.
Table 7. LoRa message transmission time in seconds.
  SF 7 SF 8 SF 9 SF 10 SF 11 SF 12
t 125 0.4290.6861.1702.2574.7148.286
t 250 0.2210.3540.6031.1632.4304.271
t 500 0.1010.1610.2750.5301.1071.945
Table 8. Percentual energy reduction.
Table 8. Percentual energy reduction.
  ACC Opt BC min Opt I SP Opt PER
  [ mA ] [ mAh ] [ mA ] [ % ]
OutTemp2.370914.22563.161361.3714
OutHum2.374914.24923.166561.3072
InTemp12.267413.60413.023163.059
InHum12.281913.69173.042662.8212
InTemp22.258613.55133.011463.2025
InHum22.23813.42822.98463.5367
InTemp32.288213.72933.05162.7191
InHum32.24613.47632.994763.4062
InTemp42.214313.28592.952463.923
InHum42.257913.54763.010663.2126
Table 9. Outdoor air temperature: annual vs. seasonal sampling times.
Table 9. Outdoor air temperature: annual vs. seasonal sampling times.
OutTemp MSE RMSE MAPE e DayMin e DayMax
T O p t Annual0.028700.142800.708900.089200.14970
T O p t Seasonal0.028450.141700.703180.089120.14785
Percentual Reduction0.871080.770310.807590.089691.23580
Table 10. Outdoor air humidity: annual vs. seasonal sampling times.
Table 10. Outdoor air humidity: annual vs. seasonal sampling times.
OutHum MSE RMSE MAPE e DayMin e DayMax
T O p t Annual0.906700.874400.833901.052300.43600
T O p t Seasonal0.891650.867230.825581.038330.43580
Percentual Reduction1.659870.820560.998321.328040.04587
Table 11. Indoor air temperature: annual vs. seasonal sampling times.
Table 11. Indoor air temperature: annual vs. seasonal sampling times.
InTemp MSE RMSE MAPE e DayMin e DayMax
T O p t Annual0.094180.193280.436700.033750.17118
T O p t Seasonal0.091910.187260.427510.033140.16770
Percentual Reduction2.409083.110852.103851.796302.03009
Table 12. Indoor air humidity: annual vs. seasonal sampling times.
Table 12. Indoor air humidity: annual vs. seasonal sampling times.
InHum MSE RMSE MAPE e DayMin e DayMax
T O p t Annual0.945300.636980.645800.475330.15600
T O p t Seasonal0.881670.620960.612700.475110.15158
Percentual Reduction6.731332.513835.125430.044812.83654
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Bua, C.; Adami, D.; Giordano, S. What Is the Optimal Sampling Time of Environmental Parameters? Fourier Analysis and Energy Harvesting to Reduce Sensors Consumption in Smart Greenhouses. AgriEngineering 2025, 7, 82. https://doi.org/10.3390/agriengineering7030082

AMA Style

Bua C, Adami D, Giordano S. What Is the Optimal Sampling Time of Environmental Parameters? Fourier Analysis and Energy Harvesting to Reduce Sensors Consumption in Smart Greenhouses. AgriEngineering. 2025; 7(3):82. https://doi.org/10.3390/agriengineering7030082

Chicago/Turabian Style

Bua, Cristian, Davide Adami, and Stefano Giordano. 2025. "What Is the Optimal Sampling Time of Environmental Parameters? Fourier Analysis and Energy Harvesting to Reduce Sensors Consumption in Smart Greenhouses" AgriEngineering 7, no. 3: 82. https://doi.org/10.3390/agriengineering7030082

APA Style

Bua, C., Adami, D., & Giordano, S. (2025). What Is the Optimal Sampling Time of Environmental Parameters? Fourier Analysis and Energy Harvesting to Reduce Sensors Consumption in Smart Greenhouses. AgriEngineering, 7(3), 82. https://doi.org/10.3390/agriengineering7030082

Article Metrics

Back to TopTop