Submitted:
08 November 2024
Posted:
12 November 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Establish an IoT architecture for wireless monitoring greenhouse parameters, including temperature, humidity, brightness, and pH.
- Implement an automated control system for regulating temperature and water level in hydroponic irrigation systems.
- Design and develop a user-friendly web application for real-time data visualization and parameter control.
- Validate the proposed system by constructing a pilot-scale greenhouse and evaluating its performance under controlled conditions.
2. Related Works
3. Methodology
3.1. Materials Required for the Implementation of the Article
3.2. Mathematical Modeling and Simulation of Control Systems
3.2.1. Mathematical Model of the Level Control System
- water height in the tank
- tank base area
- Tank inlet flow rate
- tank outlet flow rate
- tank outlet orifice area
- tank outlet flow velocity
- cm
- = 0.2827
3.2.2. Simulation and Auto-Tuning of the PI Controller for the Level Control System
3.2.3. Temperature Control System Control Logics
- If the measured temperature is in the "LowTemp" range, then the controller output will be "highPeltier" ().
- If the measured temperature is in the "MedTemp" range, then the controller output will be "medPeltier" ().
- If the measured temperature is in the "HighTemp" range, then the controller output will be "lowPeltier" ().
3.3. Electronic Design
3.3.1. Emitter Module
3.3.2. Receiver Module
3.3.3. Control Module
3.4. Mechanical Design
3.4.1. Pilot Prototype

3.4.2. Module Structures

3.5. Software Design
3.5.1. Programming for the Transmitter Module
3.5.2. Programming for Sending Data to the Database and Web Application
3.5.3. Programming for the Control Module
4. Results
4.1. Explanation of the Construction of the Pilot Prototype
4.1.1. Testing of the Level Control with Setpoint 5 cm
4.1.2. Testing of Level Control with Setpoint 8 cm
4.1.3. Testing of Fuzzy Temperature Control with Setpoint
4.2. Tests Performed on the Web Application
5. Discussions
6. Conclusions
Author Contributions
Acknowledgments
Conflicts of Interest
Abbreviations
| EOM | Equation of Obtained Motion |
| PI | Proportional Integral |
| PID | Proportional Integral Derivative |
| MOSI | Master Out Slave In |
References
- Song, Y. C.; Bi, J.; Wang, X. Design and implementation of intelligent monitoring system for agricultural environment in IoT. Internet of Things, 2024, 25, 101029. [Google Scholar] [CrossRef]
- Mansour, M.; Gamal, A.; Ahmed, A.I.; Said, L.A.; Elbaz, A.; Herencsar, N.; Soltan, A. Internet of Things: A Comprehensive Overview on Protocols, Architectures, Technologies, Simulation Tools, and Future Directions. Energies, 2023, 16, 3465. [Google Scholar] [CrossRef]
- Witczak, D.; Szymoniak, S. Review of Monitoring and Control Systems Based on Internet of Things. Appl. Sci., 2024, 14, 8943. [Google Scholar] [CrossRef]
- Bersani, C.; Ruggiero, C.; Sacile, R.; Soussi, A.; Zero, E. Internet of Things Approaches for Monitoring and Control of Smart Greenhouses in Industry 4.0. Energies, 2022, 15, 3834. [Google Scholar] [CrossRef]
- Tephila, M. B. ; Sri, R. A. ; Abinaya, R. ; Lakshmi, J. A. ; Divya, V. Automated Smart Irrigation System using IoT with Sensor Parameter, 2022 International Conference on Electronics and Renewable Systems (ICEARS), Tuticorin, India, 2022, 543–549. [CrossRef]
- Pereira, G.P.; Chaari, M.Z.; Daroge, F. IoT-Enabled Smart Drip Irrigation System Using ESP32. IoT , 2023, 4, 221–243. [Google Scholar] [CrossRef]
- Guillermo, J.C. ; García-Cedeño, A. ; Rivas-Lalaleo, D. ; Huerta, M. ; Clotet, R. (2019). IoT Architecture Based on Wireless Sensor Network Applied to Agricultural Monitoring: A Case of Study of Cacao Crops in Ecuador. In: Corrales, J., Angelov, P., Iglesias, J. (eds) Advances in Information and Communication Technologies for Adapting Agriculture to Climate Change II. AACC 2018. Advances in Intelligent Systems and Computing, vol 893. Springer.
- Zhang, H.; He, L.; Gioia, F. D.; Choi, D.; Elia, A.; Heinemann, P. LoRaWAN based internet of things (IoT) system for precision irrigation in plasticulture fresh-market tomato. Smart Agricultural Technology , 2022, 2, 100053. [Google Scholar] [CrossRef]
- Guntur, J.; Srinivasulu Raju, S.; Jayadeepthi, K.; Sravani, C.H. An automatic irrigation system using IOT devices. Materials Today: Proceedings , 2022, 68, 2233–2238. [Google Scholar] [CrossRef]
- Garcia, D. C. ; Martinez, SG. A. ; Garcia, M.E. Raspberry Pi y Arduino: semilleros en innovación tecnológica para la agricultura de precisión.Informatica y Sistemas, 2018, 2(1), 72–84. https://citt.itsm.edu.mx/ingeniantes/ articulos/ingeniantes6no2vol2/9.
- García Cortés, J.J. ; Chávez Orendain, G. ; Erick Yovanny Fajardo Gómez, E. Y. ; Sahagún Benítez, J.R. Sistema inalámbrico portátil de bajo costo para monitoreo de las variables temperatura y humedad relativa en un invernadero. Revista Ingeniantes, 2019, 2(2),61–67.
- Jimenez Moreno, R.; Aviles Sanchez, O.; Ramos Sandoval, O.L. Implementation analysis of a controller over different hardware tools. Ciencia e Ingenieria Neogranadina, 2013, 23(1),77–87.https://revistas.unimilitar.edu.co/ index.php/rcin/article/download/233/1870?inline=1.







































| Description | Unit of measure | Quantity |
|---|---|---|
| Raspberry Pi 4B 8Gb + Vilros Case | Unit | 1 |
| Cooler Fan 12V 8cm | Unit | 2 |
| Cooler Fan 12V 4cm | Unit | 1 |
| RF module NRF24L01 | Unit | 2 |
| Driver Bridge ’H’ L298N | Unit | 2 |
| Motor Shield VHN2SP30 | Unit | 1 |
| Luxmeter BH1750 | Unit | 1 |
| DS3231 clock module | Unit | 1 |
| LM2596 DC-DC voltage regulator module | Unit | 2 |
| Ultrasonic sensor HC-SR04 | Unit | 2 |
| Digital humidity and temperature sensor DHT21 | Unit | 2 |
| LED Tape 5m without silicone | Unit | 2 |
| Liquid pH Sensor + Hydroponic Electrode Bnc | Unit | 1 |
| Peltier Kit 12706 with cell, heatsinks and thermal paste | Unit | 1 |
| Water Pump 12 V. 3.5 L/min 2 A | Unit | 1 |
| Switching power supply AC/DC 12 VDC 10 A | Unit | 1 |
| Switching power supply AC/DC 12 VDC 15 A | Unit | 1 |
| White PETG roll | Unit | 1 |
| ARDUINO UNO R3 | Unit | 4 |
| Description | Unit of measure |
|---|---|
| ARDUINO IDE | Unit |
| Matlab/Simulink (UNSA Student License) | Unit |
| Pusher | Unit |
| PythonAnywhere | Unit |
| Visual Studio Code | Unit |
| Tinkercad | Unit |
| Thonny, Python IDE | Unit |
| Description | Unit of measure | Quantity |
|---|---|---|
| Premium Acrylic Plate 4mm 1.25 x 1.85 | Unit | 1 |
| MDF board | Unit | 1 |
| Aluminum angles | Unit | 4 |
| Screws | Unit | 100 |
| UTP cable | Meters | 8 |
| Sika acetic silicone | Unit | 1 |
| PVC pipe | Unit | 1 |
| Fuzzy rules | Output (PWM value on current control driver 0 - 255) |
|---|---|
| Temperature between 22oC - | PWM response between 230 - 255 |
| Temperature between - | PWM response between 160 - 230 |
| Temperature between - | PWM response between 0 - 160 |
| N° | Pin Name | Pin function | Description |
|---|---|---|---|
| 1 | CE | Digital Input (7) | Chip Enable. Enables RX or TX mode. |
| 2 | CSN | Digital Input (8) | SPI (Serial Peripheral Interface) chip selection. |
| 3 | SCK | Digital Input (13) | SPI watch. |
| 4 | MOSI | Digital Input (11) | SPI slave data input |
| 5 | MISO | Digital Output (12) | SPI slave data output, with a choice of three states. |
| 6 | IRQ | Digital Output (Not connected) | Maskable interrupt pin. Active low. |
| 7 | VCC | Power (3.3 V) | Power supply (+1.9V -+3.6V DC) |
| 8 | GND | Power (GND) | Ground (0V) |
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).