Tugas Akhir
Temperature and humidity control monitoring system in quail cage based on iot with k-nearest neighbors algorithm / Anindya Rochmah Mawaddati
Abstrak
Quail farming in Indonesia has experienced rapid growth as an important agribusiness sector supporting food security and the economy particularly in rural areas. With advantages such as production efficiency low capital requirements and high adaptability to economic changes this sector offers an attractive business opportunity. However the success of quail farming heavily depends on maintaining stable temperature and humidity levels within the cages which directly affect the birds health growth and egg production. To address these challenges a monitoring and control system based on the Internet of Things (IoT) integrated with the K-Nearest Neighbors (K-NN) algorithm was developed. This system utilizes the DHT22 sensor to measure temperature and humidity controlled by an ESP32 microcontroller and is integrated with the Firebase platform and Flutter application for real-time monitoring. The K-NN algorithm is employed to classify cage conditions and automatically control actuators such as incandescent lamps and blowers. The test results show that the system can read temperature and humidity data with an average delay time of only 1.8 seconds. It also achieved 100% accuracy in classifying environmental conditions compared to manual decision-making. The system rsquo s response to environmental changes is very fast with an average response time of less than 0.5 seconds. Furthermore during testing the system successfully maintained the cage temperature within the optimal range of 26 deg C ndash 30 deg C and humidity around 80% effectively supporting quail growth and productivity. The implementation of this IoT- and K-NN-based monitoring and control system has proven to significantly enhance operational efficiency reduce manual intervention and provide an innovative solution to improve the competitiveness of quail farming in Indonesia. This research is expected to serve as a foundation for further development in the field of smart farming.