DESIGN OF SMART URBAN FARMING BASED ON THE INTERNET OF THINGS USING RASPBERRY PI 4 TO SUPPORT THE REALIZATION OF FOOD SELF-SUFFICIENCY
Abstract
Urban agriculture could be a response to limited land availability, access to food, and increasing need for local food production in highly populated cities. However, rooftop farming is subject to temperature differences, water limits, and limited operator supervision and needs constant monitoring. In this study, a pilot-scale smart urban farming system comprising a rooftop greenhouse, water recycling mechanism, drip irrigation, Raspberry Pi 4-based sensing and control, Firebase cloud database and Django online interface was constructed and evaluated. The system was put on the roof of Universitas Brawijaya, Industrial Engineering Building. Functional testing, sensor-to-cloud transmission, dashboard verification, and irrigation discharge measurements were used for performance evaluation. During a 24-h test with a sampling interval of 5 s, 15,443 of the 17,280 predicted records were successfully received, resulting to an upload success rate of 89.37%, a missing-data rate of 10.63% and an average interval of 5.59 s. Some 50,000 recordings were processed over the five-day monitoring period of the greenhouse. A five minute pump operation delivered roughly 32 mL per dripper, i.e. 0.1067 mL/s and the reaction delay between the first and the last dripper was between 20 and 26 seconds. The results indicate that the system can provide real-time monitoring and simple automation for small rooftop gardening.
Full text article
References
[1] A. Drottberger, Y. Zhang, J. W. H. Yong, and M.-C. Dubois, "Urban farming with rooftop greenhouses: A systematic literature review," Renewable and Sustainable Energy Reviews, vol. 188, Art. no. 113884, Dec. 2023, doi: 10.1016/j.rser.2023.113884.
[2] M. A. N. Sashika, H. W. Gammanpila, and S. V. G. N. Priyadarshani, "Exploring the evolving landscape: Urban horticulture cropping systems-trends and challenges," Scientia Horticulturae, vol. 327, Art. no. 112870, Mar. 2024, doi: 10.1016/j.scienta.2024.112870.
[3] C. Prakash, L. P. Singh, A. Gupta, and S. K. Lohan, "Advancements in smart farming: A comprehensive review of IoT, wireless communication, sensors, and hardware for agricultural automation," Sensors and Actuators A: Physical, vol. 362, Art. no. 114605, 2023, doi: 10.1016/j.sna.2023.114605.
[4] H. Benyezza, M. Bouhedda, R. Kara, and S. Rebouh, "Smart platform based on IoT and WSN for monitoring and control of a greenhouse in the context of precision agriculture," Internet of Things, vol. 23, Art. no. 100830, Oct. 2023, doi: 10.1016/j.iot.2023.100830.
[5] A. Morchid, R. Jebabra, H. M. Khalid, R. El Alami, H. Qjidaa, and M. O. Jamil, "IoT-based smart irrigation management system to enhance agricultural water security using embedded systems, telemetry data, and cloud computing," Results in Engineering, vol. 23, Art. no. 102829, Sep. 2024, doi: 10.1016/j.rineng.2024.102829.
[6] B. Nsoh et al., "Internet of Things-based automated solutions utilizing machine learning for smart and real-time irrigation management: A review," Sensors, vol. 24, no. 23, Art. no. 7480, 2024, doi: 10.3390/s24237480.
[7] K. Fizza, P. P. Jayaraman, A. Banerjee, D. Georgakopoulos, and R. Ranjan, "Evaluating sensor data quality in Internet of Things smart agriculture applications," IEEE Micro, vol. 42, no. 1, pp. 51-60, Jan.-Feb. 2022, doi: 10.1109/MM.2021.3137401.
[8] C. L. Kok, I. M. B. P. Kusuma, Y. Y. Koh, H. Tang, and A. B. Lim, "Smart aquaponics: An automated water quality management system for sustainable urban agriculture," Electronics, vol. 13, no. 5, Art. no. 820, 2024, doi: 10.3390/electronics13050820.
[9] K. Obaideen et al., "An overview of smart irrigation systems using IoT," Energy Nexus, vol. 7, Art. no. 100124, Sep. 2022, doi: 10.1016/j.nexus.2022.100124.
[10] N. Jaiswal, T. V. Kumar, and C. Shukla, "Smart drip irrigation systems using IoT: A review of architectures, machine learning models, and emerging trends," Discover Agriculture, vol. 3, Art. no. 253, 2025, doi: 10.1007/s44279-025-00430-1.
[11] P. Megantoro et al., "Instrumentation system for data acquisition and monitoring of hydroponic farming using ESP32 via Google Firebase," Indonesian Journal of Electrical Engineering and Computer Science, vol. 27, no. 1, pp. 52-61, Jul. 2022, doi: 10.11591/ijeecs.v27.i1.pp52-61.
[12] E. W. Kenali, D. Rofianto, K. Amaliah, J. Fitra, H. Fathoni, T. K. Khoerunnisa, and H. P. Sari, "IoT-based smart irrigation and fertilization system with realtime cloud integration," Jurnal Nasional Teknik Elektro dan Teknologi Informasi, vol. 15, no. 1, pp. 34-43, Feb. 2026, doi: 10.22146/jnteti.v15i1.23124.
[13] B. Et-taibi et al., "Enhancing water management in smart agriculture: A cloud and IoT-based smart irrigation system," Results in Engineering, vol. 22, Art. no. 102283, Jun. 2024, doi: 10.1016/j.rineng.2024.102283.
[14] A. Balafoutis et al., "Precision agriculture technologies positively contributing to GHG emissions mitigation, farm productivity and economics," Sustainability, vol. 9, no. 8, Art. no. 1339, 2017, doi: 10.3390/su9081339.
[15] P. Rajak, A. Ganguly, S. Adhikary, and S. Bhattacharya, "Internet of Things and smart sensors in agriculture: Scopes and challenges," Journal of Agriculture and Food Research, vol. 14, Art. no. 100776, Dec. 2023, doi: 10.1016/j.jafr.2023.100776.
[16] M. Saban et al., "A smart agricultural system based on PLC and a cloud computing web application using LoRa and LoRaWan," Sensors, vol. 23, no. 5, Art. no. 2725, 2023, doi: 10.3390/s23052725.
[17] A. Morchid et al., "IoT-enabled smart agriculture for improving water management: A smart irrigation control using embedded systems and Server-Sent Events," Scientific African, vol. 27, Art. no. e02527, Mar. 2025, doi: 10.1016/j.sciaf.2024.e02527.
[18] V. Mahore, P. Soni, P. Patidar, H. Nagar, A. Chouriya, and R. Machavaram, "Development and implementation of a Raspberry Pi-based IoT system for real-time performance monitoring of an instrumented tractor," Smart Agricultural Technology, vol. 9, Art. no. 100530, Dec. 2024, doi: 10.1016/j.atech.2024.100530.
[19] J. Lee, E. Lim, N. Byun, and D. Shon, "Eco-friendly technology derivation and planning for rooftop greenhouse smart farm," Buildings, vol. 14, no. 2, Art. no. 398, 2024, doi: 10.3390/buildings14020398.
[20] T. Miller, G. Mikiciuk, I. Durlik, M. Mikiciuk, A. Lobodzinska, and M. Snieg, "The IoT and AI in Agriculture: The Time Is Now-A Systematic Review of Smart Sensing Technologies," Sensors, vol. 25, no. 12, Art. no. 3583, 2025, doi: 10.3390/s25123583.
Authors
Copyright (c) 2026 JEMIS (Journal of Engineering & Management in Industrial System)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.