The rising food demand and challenges with respect to the climate have made precision agriculture (PA) vital for sustainable crop production.
This study presents an IoT-based smart greenhouse platform tailored for tomato farming, integrating environmental sensing and deep learning. The system employs ESP32-based wireless sensors to collect real-time data on soil moisture, temperature, and humidity; this data is transmitted to a cloud dashboard (ThingsBoard) for remote monitoring. A Raspberry Pi equipped with a Pi Camera and a YOLOv8 model classifies tomato ripeness stages—green, half-ripened, and fully ripened—using real greenhouse images. Model optimizations, including quantization, pruning, and TensorRT, improved inference speed by 35% while maintaining 52.8% classification accuracy during the initial stage of the project. Energy profiling revealed daily consumption of 8.91 Wh for the ESP32 sensors and 78 Wh for the Raspberry Pi. This prototype demonstrates real-time monitoring, high model precision, and practical energy insights, paving the way for multi-node scalability and edge AI enhancements.
Future work will explore incorporating Edge TPU for faster on-device processing, LoRa for low-power, long-distance data transfer, and automated control of irrigation and ventilation systems to realize a fully autonomous smart greenhouse.
Saxena, A., Agarwal, A., Nagrath, B. et al. Deep learning-driven IoT solution for smart tomato farming. Sci Rep 15, 31092 (2025). https://doi.org/10.1038/s41598-025-15615-3
Source: Nature Magazine