Hybrid Digital Twin for Phytotron Microclimate Control: Integrating Physics-Based Modeling and IoT Sensor Networks
Integration of IoT and predictive modeling is critical for optimizing microclimate management in urban-agglomeration vertical farming. In this study, we present a hybrid digital twin approach that combines a physical microclimate model with a distributed IoT monitoring system to simulate and control the phytotron environment. A set of heat- and mass-balance equations governing the dynamics of temperature, humidity, and transpiration was implemented and parameterized using a genetic algorithm (GA)—an evolutionary optimization method—with real-time data collected over three intervals (72 h, 90 h, and 110 h) from LoRaWAN sensors (temperature, humidity, CO2) and Wi-Fi-connected power meters managed by Home Assistant. The optimized model achieved mean temperature deviations ≤ 0.1 °C, relative humidity errors ≤ 2%, and overall energy consumption accuracy of 99.5% compared to measured values. The digital twin reliably tracked daily climate fluctuations and system energy use, confirming the accuracy of the hybrid approach. These results demonstrate that the proposed framework effectively integrates theoretical models with IoT-derived data to deliver precise environmental control and energy-use optimization in vertical farming, while also laying the groundwork for scalable digital twins in controlled-environment agriculture.