SmartENose: Environmental Health Monitoring System for Cattle Sheds Using Fuzzy System Method
Main Article Content
Abstract
The air quality in livestock barns significantly impacts the health and productivity of animals. This study designs an air quality monitoring system based on the Internet of Things (IoT) utilizing the ESP32 microcontroller and three gas sensors: MQ-135 (ammonia), MQ-4 (methane), and MQ-7 (carbon monoxide). The collected data is processed using the Fuzzy Sugeno logic method, which involves fuzzification, rule base, and defuzzification stages to classify the air conditions into Safe, Alert, or Dangerous categories. The classification results are displayed in real-time through an I2C LCD, the Blynk application, and the SmartENose website developed with PHP and MySQL. Additionally, the system is equipped with LED indicators and a buzzer for early warning notifications. Testing results indicate that the system can detect gas concentrations responsively and accurately, providing air status classifications that align with the actual conditions in the cattle barn. This research demonstrates that the application of IoT technology, supported by Fuzzy Sugeno logic, can be effectively utilized for monitoring and early warning of air quality in agricultural environments.
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
References
A. T. Murti, K. Setyowati, and H. Karamina, “Analisa pendapatan peternakan sapi potong Di Kabupaten Lamongan (studi kasus pada koperasi kelompok peternak gunungrejo makmur Di Desa Gunungrejo Kecamatan Kedungpring, Kabupaten Lamongan),” Jurnal Sains Peternakan, vol. 9, no. 1, pp. 16–32, 2021.
Y. Yu, M. Gola, G. Settimo, M. Buffoli, and S. Capolongo, "Feasibility and Affordability of Low-Cost Air Sensors with Internet of Things for Indoor Air Quality Monitoring in Residential Buildings: Systematic Review on Sensor Information and Residential Applications, with Experience-Based Discussions,"
Atmosphere, vol. 15, no. 10, p. 1170, Sep. 2024, doi: 10.3390/atmos15101170.
M. Gofur, D. Risqiwati, and V. R. S. Nastiti, “Sistem Monitoring Gas Amonia dan Kadar Bersih Udara Pada Kandang Sapi Perah Dengan Menggunakan Protokol Komunikasi MQTT Dan Algoritma Rule Based System,” Jurnal Rep V219.537, vol. 3, no. 1, 2021.
S. M. Ensley, Toxicology, An Issue of Veterinary Clinics of North America: Food Animal Practice, E-Book: Toxicology, An Issue of Veterinary Clinics of North America: Food Animal Practice, E-Book, vol. 36, no. 3. Elsevier Health Sciences, 2020.
B. Nast and K. Sandkuhl, "Meta-Model and Tool Support for the Organizational Aspects of Internet-of-Things Development Methods: Organizational Aspects of IoT Development Methods,"
in Proc. 3rd Int. Conf. Advanced Information Science and System (AISS 2021). Sanya, China, Nov. 26–28, 2021, pp. 1–6, doi: 10.1145/3503047.3503077.
F. A. Pratama, A. Asminah, and S. Aminah, “Prototype Pembersih Kotoran Kandang Sapi Berbasis Internet Of Things Menggunakan Fuzzy Logic,” Jurnal Pustaka AI (Pusat Akses Kajian Teknologi Artificial Intelligence), vol. 3, no. 2, pp. 63–69, 2023.
L. M. Easterline, A. R. Putri, P. S. Atmaja. L. Dewi, and A. Prasetyo, "Smart Air Monitoring with IoT-based MQ-2, MQ-7, MQ-8, and MQ-135 Sensors using NodeMCU ESP32," Procedia Computer Science, vol. 245, pp. 815–824, 2024, doi: 10.1016/j.procs.2024.10.308.
W. Hernandez and N. Cañas, "Sensing Classroom Temperature, Relative Humidity, Illuminance, CO2, and Noise: An Integral Solution Based on an IoT Device for Dense Deployments," Sensors, vol. 24, no. 16, p. 5129, Aug. 2024, doi: 10.3390/s24165129.
B. N. Maharani, I. Syabani, A. A. Fahreza, and Y. Kurniawan, "Terragrow: Development of a Vertical Farming IoT Control System for Hydroponic Vegetable Cultivation," IOP Conference Series: Earth and Environmental Science, vol. 1279, no. 1, p. 012019, 2025, doi: 10.1088/1755-1315/1279/1/012019.
A. Arshad, Z. Ahmad Zuri, N. A. Wahab, and A. Zainal, "Application of Sugeno Integral Method for Decision Evaluation of Oil Palm Varieties," Applied Sciences, vol. 12, no. 17, p. 8782, 2022, doi: 10.3390/app12178782.