Temperature and Humidity Control System for Quail Cages Based on Fuzzy Logic

Authors

  • Yosi Nugraha Adi Department of Electrical Engineering, Universitas Muhammadiyah Yogyakarta, Yogyakarta, 55183, Indonesia https://orcid.org/0009-0009-3826-0178
  • Iswanto Suwarno Department of Electrical Engineering, Universitas Muhammadiyah Yogyakarta, Yogyakarta, 55183, Indonesia https://orcid.org/0000-0001-8459-3920
  • Widyasmoro Widyasmoro Department of Electrical Engineering, Universitas Muhammadiyah Yogyakarta, Yogyakarta, 55183, Indonesia https://orcid.org/0009-0000-0762-1975
  • Nia Maharani Raharja Universitas Islam Negeri Sunan Kalijaga, Yogyakarta, Sleman, 55281, Indonesia https://orcid.org/0000-0002-0786-9409
  • Muhammad Hafid Alkarim Research Center of Instrumentation, control and automation, Peneliti Teknologi Teknik Indonesia, Sleman, 55281, Indonesia https://orcid.org/0009-0007-4279-6392
  • Alfian Maarif Department of Electrical Engineering, Universitas Ahmad Dahlan, Yogyakarta, Indonesia https://orcid.org/0000-0002-3482-971X

DOI:

https://doi.org/10.31272/jeasd.3985

Keywords:

Environmental Control, ESP32, Fuzzy Logic Control, Humidity, Temperature

Abstract

Quails require stable environmental temperature and humidity to maintain health, reduce thermal stress, and support productivity. Conventional threshold-based control systems often show limited adaptability to dynamic environmental fluctuations in small-scale poultry farming. This study proposes an adaptive temperature and humidity control system for quail cages based on a Fuzzy Logic Controller (FLC) implemented on an ESP32 microcontroller using real-time feedback from a DHT22 sensor. The proposed system employs the Mamdani fuzzy method to control the heater and blower actuators via pulse-width-modulated (PWM) signals. The novelty of this study lies in the development of a low-cost adaptive fuzzy control framework specifically designed for small-scale quail cage environments with simultaneous heater–blower regulation based on combined temperature and humidity conditions. Experimental simulation results demonstrate that at low-temperature and dry-humidity conditions (18°Celcius, 40 relative humidity), the system produces a heater PWM of 223.3 and a blower PWM of 29.7. Under ideal environmental conditions (27°C, 60%RH), both outputs decrease to approximately 26.7 PWM, indicating energy-efficient operation. At high-temperature and high-humidity conditions (35°C, 80% RH), the heater decreases to 27.3 PWM while the blower increases to 224.6 PWM. These findings confirm that the proposed system provides adaptive, stable, and responsive environmental control for quail cages.

Author Biographies

Yosi Nugraha Adi, Department of Electrical Engineering, Universitas Muhammadiyah Yogyakarta, Yogyakarta, 55183, Indonesia

Department of Electrical Engineering, Universitas Muhammadiyah Yogyakarta, Yogyakarta, 55183, Indonesia

Iswanto Suwarno, Department of Electrical Engineering, Universitas Muhammadiyah Yogyakarta, Yogyakarta, 55183, Indonesia

Department of Electrical Engineering, Universitas Muhammadiyah Yogyakarta, Yogyakarta, 55183, Indonesia

Widyasmoro Widyasmoro, Department of Electrical Engineering, Universitas Muhammadiyah Yogyakarta, Yogyakarta, 55183, Indonesia

Department of Electrical Engineering, Universitas Muhammadiyah Yogyakarta, Yogyakarta, 55183, Indonesia

Nia Maharani Raharja, Universitas Islam Negeri Sunan Kalijaga, Yogyakarta, Sleman, 55281, Indonesia

Universitas Islam Negeri Sunan Kalijaga, Yogyakarta, Sleman, 55281, Indonesia Indonesia

Muhammad Hafid Alkarim, Research Center of Instrumentation, control and automation, Peneliti Teknologi Teknik Indonesia, Sleman, 55281, Indonesia

Research Center of Instrumentation, control and automation , Peneliti Teknologi Teknik Indonesia, Sleman, 55281, Indonesia

Alfian Maarif, Department of Electrical Engineering, Universitas Ahmad Dahlan, Yogyakarta, Indonesia

Department of Electrical Engineering, Universitas Ahmad Dahlan, Yogyakarta, Indonesia

References

O. Olgun, E. T. Gül, G. Kılınç, A. Yıldız, and A. Sarmiento-García, “Re-evaluating riboflavin requirements for laying quails: Implications for productivity and yolk antioxidant function,” Poult. Sci., vol. 104, no. 11, p. 105676, Nov. 2025, doi: https://doi.org/10.1016/j.psj.2025.105676

S. D. Sharifi, A. Rahimi, H. Rouhanipour, and H. P. Zanussi, “Raising systems and diet type in Japanese quails production: Effects on growth performance, carcass characteristics, fatty acid profiles and meat quality,” Poult. Sci., vol. 104, no. 11, p. 105706, Nov. 2025, doi: https://doi.org/10.1016/j.psj.2025.105706

C. Hu, L. Li, Y. Jia, Z. Xie, Y. Yu, and L. Huo, “Numerical study and optimization of thermal environment regulation in poultry house ventilation systems,” Poult. Sci., vol. 104, no. 11, p. 105786, Nov. 2025, doi: https://doi.org/10.1016/j.psj.2025.105786

L. Merabti, O. Ketfi, F. Harouadi, G. Zitouni, K. Gribissa, and L. Abdesselam, “Two-stage evaporative cooling for improving poultry housing environment in Algerian arid zones,” Desalination Water Treat., vol. 279, pp. 36–41, Dec. 2022, doi: https://doi.org/10.5004/dwt.2022.29065

M. V. M. Morais, H. J. D. Lima, F. N. A. Silva, and M. V. F. C. Gomes, “Indicators of thermal comfort and nitrogen digestibility as a function of digestible arginine: lysine ratios in the diet of laying Japanese quails raised in hot weather,” Journal of Thermal Biology vol. 115, p. 103597, Jul. 2023, doi: https://doi.org/10.1016/j.jtherbio.2023.103597

A. C. Z. Reis et al., “Genotype-by-environment interaction across THI classes impacts the selection for body weight at young ages in meat quails,” Poult. Sci., vol. 104, no. 8, p. 105299, 2025, doi: https://doi.org/10.1016/j.psj.2025.105299

L. A. dos Anjos Lima et al., “Effects of exogenous phytase supplementation on the modulation of hormonal responses in Japanese quails (Coturnix japonica) at high environmental temperatures during the production phase,” Poult. Sci., vol. 104, no. 10, p. 105590, 2025, doi: https://doi.org/10.1016/j.psj.2025.105590

H. B. Çiftci, “The effect of temperature and humidity index on egg-laying and hatching parameters in Japanese quail,” Can. J. Anim. Sci., vol. 105, pp. 1–6, 2025, doi: https://doi.org/10.1139/cjas-2024-0084

A. Vinhas de Souza et al., “Reproductive characteristics of Japanese quail hatched from eggs incubated at different temperatures,” Theriogenology, vol. 236, pp. 1–7, 2025, doi: https://doi.org/10.1016/j.theriogenology.2025.01.022

K. M. Pontes et al., “Effects of inclusion of the blend of essential oils, organic acids, curcumin, tannins, vitamin E, and zinc in the maternal diet, and of incubation temperature on early and late development of quail,” Poult. Sci., vol. 103, no. 10, p. 104022, 2024, doi: https://doi.org/10.1016/j.psj.2024.104022

[11] R. Bose, S. Roy, and H. Mondal, “A novel algorithmic electric power saver strategy for real-time smart poultry farming,” e-Prime - Advances in Electrical Engineering, Electronics and Energy, vol. 2, p. 100053, 2022, doi: https://doi.org/10.1016/j.prime.2022.100053

[12] F. Zhu, Y. Zhang, W. Zhang, T. Gao, S. Wang, and L. Zhou, “Research on Predictive Control Method of Pigsty Environment Based on Fuzzy Control,” Agriculture 2024, Vol. 14, Page 1004, vol. 14, no. 7, p. 1004, Jun. 2024, doi: https://doi.org/10.3390/AGRICULTURE14071004

E. A. Almuhanna, M. A. Eltawil, and S. Y. Al-Ramadan, “Sustainable poultry house emissions control: A novel electrostatic-biotrickling filter powered by PV,” Process Safety and Environmental Protection, vol. 203, p. 107869, 2025, doi: https://doi.org/10.1016/j.psep.2025.107869

N. Elghardouf, Y. Ennaciri, A. Elakkary, and N. Sefiani, “Multi-loop active disturbance rejection control and PID control strategy for poultry house based on GA, PSO and GWO algorithms,” Heliyon, vol. 10, no. 8, p. e29579, 2024, doi: https://doi.org/10.1016/j.heliyon.2024.e29579

P. Shen, X. Xie, J. Zhang, Z. Chen, F. Cheng, and H. Huang, “Extreme temperature control method for thermoelectric coolers combined with prediction model and fuzzy strategy,” Appl. Therm. Eng., vol. 280, p. 127903, Dec. 2025, doi: https://doi.org/10.1016/j.applthermaleng.2025.127903

H. Yan, Y. Xia, X. Xu, and S. Deng, “Inherent operational characteristics aided fuzzy logic controller for a variable speed direct expansion air conditioning system for simultaneous indoor air temperature and humidity control,” Energy Build., vol. 158, pp. 558–568, Jan. 2018, doi: https://doi.org/10.1016/j.enbuild.2017.10.013

M. H. Demir et al., “Independent temperature and humidity control of a precooled desiccant air cooling system with proportional and fuzzy logic + proportional based controllers,” International Communications in Heat and Mass Transfer, vol. 139, p. 106451, Dec. 2022, doi: https://doi.org/10.1016/j.icheatmasstransfer.2022.106451

Z. Zhong, X. Xu, X. Zhang, and Z. Huang, “Simulation-Based Control Performance Evaluation of a Novel Fuzzy Logic Control Algorithm for Simultaneously Controlling Indoor Air Temperature and Humidity Using a Direct Expansion (DX) Air-conditioning (A/C) System,” Procedia Eng., vol. 205, pp. 1792–1799, 2017, doi: https://doi.org/10.1016/j.proeng.2017.10.040

L. Yao, L.-Y. Huang, and J. C. Teo, “HVAC control based on reinforcement learning and fuzzy reasoning: Optimizing HVAC supply air temperature, flow rate, and velocity,” Journal of Building Engineering, vol. 103, p. 112143, Jun. 2025, doi: https://doi.org/10.1016/j.jobe.2025.112143

H. Pagare, K. Mishra, K. Sharma, K. Kotecha, and A. Kulkarni, “Reducing energy consumption in air conditioning systems, a fuzzy logic-based optimization approach,” Energy Reports, vol. 14, pp. 3014–3032, Dec. 2025, doi: https://doi.org/10.1016/j.egyr.2025.09.021

P. Wijayakusuma, G. P. Nurani Hakim, and B. Li, “TerraGrow: Integrated platform for real-time plant monitoring and automated watering system with IoT and fuzzy Sugeno Algorithm,” HardwareX, vol. 24, p. e00724, Dec. 2025, doi: https://doi.org/10.1016/j.ohx.2025.e00724

H. Yi, J. Zhou, J. Zhang, and E. Chen, “Adaptive thermal comfort control of electric vehicle air conditioning using GWO-optimized fuzzy PID,” Thermal Science and Engineering Progress, vol. 66, p. 104057, Oct. 2025, doi: https://doi.org/10.1016/j.tsep.2025.104057

E. Çinar and T. Abut, “Fuzzy LQR-based control to ensure comfort in HVAC system with two different zones,” Case Studies in Thermal Engineering, vol. 73, p. 106544, Sep. 2025, doi: https://doi.org/10.1016/j.csite.2025.106544

J. Liu, J. Li, X. Liu, C. Liu, G. Liu, and Z. Xu, “Adaptive fuzzy controller design for an air handling unit,” Eur. J. Control, vol. 79, p. 101085, Sep. 2024, doi: https://doi.org/10.1016/j.ejcon.2024.101085

A. Shrivastava, P. K. Choubey, and G. P. Mishra, “Fuzzy logic-based smart real-time control of evaporative cooling systems for enhanced energy efficiency and thermal comfort in buildings: experimental validation using a cyber-physical system,” Sustainable Energy Technologies and Assessments, vol. 86, p. 104877, Feb. 2026, doi: https://doi.org/10.1016/j.seta.2026.104877

M. Safdari, M. Al Janaideh, K. Siddiqui, and A. A. Aliabadi, “Weather-adaptive fuzzy control of setpoints for energy-efficient HVAC in urban buildings,” Journal of Building Engineering, vol. 104, p. 112317, Jun. 2025, doi: https://doi.org/10.1016/j.jobe.2025.112317

Z. Li, X. Xu, S. Deng, and D. Pan, “A novel proportional-derivative (PD) law based fuzzy logic principles assisted controller for simultaneously controlling indoor temperature and humidity using a direct expansion (DX) air conditioning (A/C) system,” International Journal of Refrigeration, vol. 57, pp. 239–256, Sep. 2015, doi: https://doi.org/10.1016/j.ijrefrig.2015.05.011

A. Marvuglia, A. Messineo, and G. Nicolosi, “Coupling a neural network temperature predictor and a fuzzy logic controller to perform thermal comfort regulation in an office building,” Build. Environ., vol. 72, pp. 287–299, Feb. 2014, doi: https://doi.org/10.1016/j.buildenv.2013.10.020

M. S. Khanghah, A. Bonvin, and F. Moghaddam, “IoT-enabled experimental validation of fuzzy logic control for in solar thermal collector systems,” Solar Energy Advances, vol. 5, p. 100125, 2025, doi: https://doi.org/10.1016/j.seja.2025.100125

F. Irwanto et al., “IoT and fuzzy logic integration for improved substrate environment management in mushroom cultivation,” Smart Agricultural Technology, vol. 7, p. 100427, 2024, doi: https://doi.org/10.1016/j.atech.2024.100427

P. Y. Aisyah, I. Zarkasih, and M. Kurnia, “Smart and sustainable hydroponics: Fuzzy logic-based environmental control for optimized indoor crop growth,” Green Technologies and Sustainability, vol. 4, no. 2, p. 100311, 2026, doi: https://doi.org/10.1016/j.grets.2025.100311

Y. Jusman, M. Irfan Kusumabrata, K. Purwanto, and M. A. F.Nurkholid, “DHT 11 Sensor-Based Automatic Chicken Egg Hatching Incubator,” E3S Web of Conferences, vol. 570, p. 01010, Sep. 2024, doi: https://doi.org/10.1051/e3sconf/202457001010

M. D. Arizki, Y. Ardiyanto, and K. T. Putra, “IoT-Based Smart Irrigation System for Aglaonema Cultivation Using Soil Temperature and Humidity Monitoring via Antares Platform,” in 2025 5th International Conference on Electronic and Electrical Engineering and Intelligent System (ICE3IS), IEEE, pp. 389–394, Aug. 2025, doi: https://doi.org/10.1109/ICE3IS66769.2025.11280809

Downloads

Key Dates

Received

2026-03-14

Revised

2026-08-24

Accepted

2026-08-24

Published Online First

2026-08-25

How to Cite

Nugraha Adi, Y., Suwarno, I., Widyasmoro, W. ., Raharja, N. M., Alkarim, M. H., & Maarif, A. (n.d.). Temperature and Humidity Control System for Quail Cages Based on Fuzzy Logic. Journal of Engineering and Sustainable Development, 30(5), 628-638. https://doi.org/10.31272/jeasd.3985