Design and Evaluation of a Smart Poultry Farm Device Integrating Internet of Things and Machine Learning for Monitoring Temperature and Humidity

Authors

  • Folashade Olamide Ariba Department of Electrical and Electronics Engineering Federal University of Technology and Environmental Sciences Iyin-Ekiti, Ekiti State, Nigeria. https://orcid.org/0009-0001-7566-7200
  • David Abolarin Department of Electrical and Information Engineering Landmark University, Omu-Aran, Kwara State, Nigeria. https://orcid.org/0009-0004-3163-0264
  • John Onyemenam Department of Electrical and Information Engineering Landmark University, Omu-Aran, Kwara State, Nigeria. https://orcid.org/0000-0002-7761-310X
  • Ester Toyin Olawole Department of Electrical and Electronic Engineering University of Ilorin, Ilorin, Kwara State, Nigeria

DOI:

https://doi.org/10.56532/mjsat.v6i2.634

Keywords:

Machine Learning, Internet of Things, Microcontroller, Smart Agriculture, Poultry Monitoring

Abstract

Rising global temperatures and humidity are significantly impacting birds' welfare, productivity, and mortality rates, leading to economic losses and inefficiencies in poultry farm management. This research aims to design and implement an Internet of Things (IoT) device integrated with Machine Learning (ML) models to forecast temperature and humidity values in a poultry farm. This study designed a prototype of an IoT device consisting of DHT11 sensors connected to an ESP32 microcontroller to collect real-time temperature and humidity data from a poultry farm. The collected data are used to train ML models, namely: Auto-Regressive Integrated Moving Average (ARIMA), Random Forest (RF) and Support Vector Machine (SVM) to forecast future temperature and humidity values. The measured and predicted data are displayed on an LCD screen connected to the ESP32 microcontroller, enhancing proactive decision-making. Simulation testing was carried out on Python software to compare and analyse the measured and predicted temperature and humidity values. The performance of the ML models was evaluated in terms of Root Mean Square Error (RMSE), Mean Absolute Error (MAE) and Coefficient of Determination (R2). The results show that RF predicted data gave a close fit to the actual data, SVM provided a tendency toward lower predicted value and ARIMA model showed the most accurate predictions, providing lowest RMSE (1.56) and MAE (0.34) at highest R2 (88%) than RF and SVM. This approach demonstrates that ARIMA model offers effective solution than other ML models in poultry farming through real-time monitoring and predictive analysis.

References

F. J. Kleyn and M. Ciacciariello, ‘Future demands of the poultry industry: will we meet our commitments sustainably in developed and developing economies?’, Worlds Poult. Sci. J., vol. 77, no. 2, pp. 267–278, Apr. 2021, doi: https://doi.org/10.1080/00439339.2021.1904314.

M. M. Erdaw and W. Ts. Beyene, ‘Trends, prospects and the socio-economic contribution of poultry production in sub-Saharan Africa: a review’, Worlds Poult. Sci. J., vol. 78, no. 3, pp. 835–852, July 2022, doi: https://doi.org/10.1080/00439339.2022.2092437.

M. M. Erdaw, ‘Contribution, prospects and trends of livestock production in sub-Saharan Africa: a review’, Int. J. Agric. Sustain., vol. 21, no. 1, p. 2247776, Dec. 2023, doi: https://doi.org/10.1080/14735903.2023.2247776.

A. Monteiro, S. Santos, and P. Gonçalves, ‘Precision agriculture for crop and livestock farming—Brief review’, Animals, vol. 11, no. 8, p. 2345, 2021. doi: https://doi.org/10.3390/ani11082345

K. Olejnik, E. Popiela, and S. Opaliński, ‘Emerging precision management methods in poultry sector’, Agriculture, vol. 12, no. 5, p. 718, 2022. doi: https://doi.org/10.3390/agriculture12050718

R. W. Kadawarage, A. Dunislawska, and M. Siwek, ‘Ecological footprint of poultry production and effect of environment on poultry genes’, Phys. Sci. Rev., vol. 9, no. 2, pp. 567–589, Mar. 2024, doi: https://doi.org/10.1515/psr-2021-0128.

D. R. Korver, Current challenges in poultry nutrition, health, and welfare, vol. 17. Elsevier, 2023, p. 100755. Accessed: Sept. 02, 2025. doi: https://doi.org/10.1016/j.animal.2023.100755

A. S. George and A. H. George, ‘Optimizing poultry production through advanced monitoring and control systems’, Partn. Univers. Int. Innov. J., vol. 1, no. 5, pp. 77–97, 2023. doi: https://doi.org/10.5281/zenodo.10050352

O. O. Apalowo, D. A. Ekunseitan, and Y. O. Fasina, ‘Impact of heat stress on broiler chicken production’, Poultry, vol. 3, no. 2, pp. 107–128, 2024. doi: https://doi.org/10.3390/poultry3020010

S. A. Islam and R. I. Khan, ‘Development of a Sensor-Integrated AI Automation Model for Decision-Based Heat Stress Management in Layer Chickens Under Subtropical Climate Conditions’, Smart Agric. Technol., p. 101306, 2025. doi: https://doi.org/10.1016/j.atech.2025.101306

S. Neethirajan, ‘Rethinking Poultry Welfare—Integrating Behavioral Science and Digital Innovations for Enhanced Animal Well-Being’, Poultry, vol. 4, no. 2, p. 20, 2025. doi: https://doi.org/10.3390/poultry4020020

A. A. AlZubi and K. Galyna, ‘Artificial intelligence and internet of things for sustainable farming and smart agriculture’, IEEE Access, vol. 11, pp. 78686–78692, 2023. doi: https://doi.org/10.1109/ACCESS.2023.3298215

S. Purnama and W. Sejati, ‘Internet of things, big data, and artificial intelligence in the food and agriculture sector’, Int. Trans. Artif. Intell., vol. 1, no. 2, pp. 156–174, 2023.

V. Goyal, A. Yadav, and R. Mukherjee, ‘A Literature Review on the Role of Internet of Things, Computer Vision, and Sound Analysis in a Smart Poultry Farm’, ACS Agric. Sci. Technol., vol. 4, no. 4, pp. 368–388, Apr. 2024, doi: https://doi.org/10.1021/acsagscitech.3c00467.

G. Ahmed, R. A. S. Malick, A. Akhunzada, S. Zahid, M. R. Sagri, and A. Gani, ‘An approach towards IoT-based predictive service for early detection of diseases in poultry chickens’, Sustainability, vol. 13, no. 23, p. 13396, 2021. doi: https://doi.org/10.3390/su132313396

S. Neethirajan, ‘Automated tracking systems for the assessment of farmed poultry’, Animals, vol. 12, no. 3, p. 232, 2022. doi: https://doi.org/10.3390/ani12030232

M. H. Natsir, W. F. Mahmudy, M. Tono, and Y. F. Nuningtyas, ‘Advancements in Artificial Intelligence and Machine Learning for Poultry Farming: Applications, Challenges, and Future Prospects’, Smart Agric. Technol., p. 101307, 2025. doi: https://doi.org/10.1016/j.atech.2025.101307

I. V. Paputungan et al., ‘Temperature and humidity monitoring system in broiler poultry farm’, in IOP Conference Series: Materials Science and Engineering, IOP Publishing, 2020, p. 012010. doi: https://doi.org/10.1088/1757-899X/803/1/012010

L. S. Ezema, E. C. Ifediora, A. A. Olukunle, and N. C. Onuekwusi, ‘Design and implementation of an Esp32-Based smart embedded industrial poultry farm’, Eur. J. Eng. Technol. Res., vol. 6, no. 3, pp. 103–108, 2021. doi: https://doi.org/10.24018/ejeng.2021.6.3.2397

S. Lee, I. Lee, U. Yeo, J. Kim, and R. Kim, ‘Machine learning approach to predict air temperature and relative humidity inside mechanically and naturally ventilated duck houses: application of recurrent neural network’, Agriculture, vol. 12, no. 3, p. 318, 2022. doi: https://doi.org/10.3390/agriculture12030318

V. Shwetha, B. S. Maddodi, V. Laxmi, A. Kumar, and S. Shrivastava, ‘Latest trend and challenges in machine learning–and deep learning–based computational techniques in poultry health and disease management: A review’, J. Comput. Netw. Commun., vol. 2024, 2024. doi: https://doi.org/10.1155/2024/8674250

E. B. Rebez et al., ‘Applications of artificial intelligence for heat stress management in ruminant livestock’, Sensors, vol. 24, no. 18, p. 5890, 2024. doi: https://doi.org/10.3390/s24185890

A. Godinho, R. Vicente, S. Silva, and P. J. Coelho, ‘Wireless Environmental Monitoring and Control in Poultry Houses: A Conceptual Study’, IoT, vol. 6, no. 2, p. 32, 2025. doi: https://doi.org/10.3390/iot6020032

J. C. Babu, L. S. Koneru, A. Kumar, and B. Venkatesh, ‘Early Enhancements within IoT Technology Integration for Ecological, Security, and Economic Auditing in Underground Mines’, in 2024 IEEE 6th International Conference on Cybernetics, Cognition and Machine Learning Applications (ICCCMLA), IEEE, 2024, pp. 317–327.

A. R. Alif, A. Ayon, A. H. Munna, A. S. M. Nasim, and S. Hassan, ‘Comprehensive Design and Analysis of an IoT-Enabled Environmental Monitoring System for Industrial Applications’, 2025. doi: https://doi.org/10.20944/preprints202503.0392.v1

D. Chicco, M. J. Warrens, and G. Jurman, ‘The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation’, Peerj Comput. Sci., vol. 7, p. e623, 2021. doi: https://doi.org/10.7717/peerj-cs.623

Downloads

Published

2026-06-15

Issue

Section

Articles

How to Cite

[1]
“Design and Evaluation of a Smart Poultry Farm Device Integrating Internet of Things and Machine Learning for Monitoring Temperature and Humidity”, Malaysian J. Sci. Adv. Tech., vol. 6, no. 2, pp. 160–168, Jun. 2026, doi: 10.56532/mjsat.v6i2.634.