Internet of Things Based System for Detecting Egg Theft Attempts in Quail Layer Housing
Main Article Content
Abstract
The increasing number of quail egg farmers in West Sumatra has raised the demand for more effective security systems. Conventional security methods such as padlocks and latches often fail to prevent egg theft, especially due to the cage’s distance from the farmer's residence. This research proposes an Internet of Things (IoT)-based egg theft detection system using fuzzy logic. The system consists of three modules: Module 1 for motion detection and threat level processing using fuzzy logic algorithm, Module 2 as an egg weighing platform to detect weight changes, and Module 3 for sending Telegram notifications and triggering alarms. Modules communicate using ESP-NOW and LoRa SX1278 protocols. Fuzzy logic is employed to determine the threat level based on weight change and motion detection data. Testing results show that the system successfully detects theft attempts in real time, sends alerts via Telegram bot, and activates alarms according to the threat level. The system improves the efficiency and effectiveness of quail cage house security.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
[2] Dinas Peternakan dan Kesehatan Hewan, “Populasi Ternak Menurut Kabupaten/Kota se-Sumatera Barat dan Jenis Ternak Tahun 2023”, data.sumbarprov.go.id, Jul. 22, 2024. [Online] Available : https://data.sumbarprov.go.id/no/dataset/populasi-ternakmenurut-kabupaten-kota-se-sumatera-barat-dan-jenisternak-tahun-2023/resource/71f37993-b055-443f-b999-358f875dfddb [Accessed : Sept. 20, 2024]
[3] BPS Kabupaten Lima Puluh Kota, “Produksi Telur Puyuh Menurut Kecamatan di Kabupaten Lima Puluh Kota (kg), 2021-2022”, limapuluhkotakab.bps.go.id, Dec. 22, 2023. [Online] Available : https://limapuluhkotakab.bps.go.id/id/statisticstable/2/MTcxIzI=/produksi-telur-puyuh-menurutkecamatan-di-kabupaten-lima-puluh-kota.html [Accessed : Sept. 20, 2024]
[4] A. Muhaimin, “Prototype Sistem Keamanan Pintu Kandang Dan Pemberian Pakan Ternak Puyuh Otomatis Bebasis Mikrokontroler”, scholar.unand.ac.id, Aug. 2, 2021. [Online] Available : https://scholar.unand.ac.id/78205/ [Accessed : Dec. 29, 2024]
[5] W. Bagye dan T. Azizah, “Alat Pengaman Kandang Berbasis Mikrokontroler Arduino Uno”, JIRE (Jurnal Informatika & Rekayasa Elektronika), Vol. 1, No. 2, Nov. 2018. [Online] Available : https://ejournal.stmiklombok.ac.id/index.php/jire/article/view/61 [Accessed : Dec. 29, 2024]
[6] M. Babiuch, P. Foltýnek dan P. Smutný, "Using the ESP32 Microcontroller for Data Processing", 2019 20th International Carpathian Control Conference (ICCC), pp. 1-6, 2019, Doi: 10.1109/CarpathianCC.2019.8765944. [Accessed : Oct. 29, 2024]
[7] espressif, "ESP 32 Series Datasheet", espressif. [Online] Available : https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf [Accessed : Oct. 29, 2024]
[8] E. A. Prastyo, "Mengenal Pin GPIO ESP-WROOM-32", arduino.biz, Aug. 24, 2022. [Online] Available : https://www.arduino.biz.id/2022/08/mengenal-pin-gpioesp-wroom-32.html [Accessed : Oct. 29, 2024]
[9] A. Kamolan and L. Sampebatu, “Rancang Bangun Prototipe Pengaman Ruangan dengan Input Kode PIN dan Multi Sensor Berbasis Mikrokontroller”, AMPERE, vol. 6, no. 1, pp. 22–31, June. 2021, Doi : https://doi.org/10.31851/ampere.v6i1.5980 [Accessed : Oct. 29, 2024]
[10] alldatasheet, "HC-SR501 Datasheet", alldatasheet. [Online] Available : https://www.alldatasheet.com/datasheetpdf/pdf/1131987/ETC2/HC-SR501.html [Accessed : Oct. 29, 2024]
[11] lastminuteengineers, “How HC-SR501 PIR Sensor Works & Interface It With Arduino”, lastminuteengineers, 2024. [Online] Available : https://lastminuteengineers.com/pirsensor-arduino-tutorial/ [Accessed : Oct. 29, 2024]
[12] R. Bagus, L. Agustine, dan D. Lestariningsih, "Alat Ukur Timbangan Badan Dan Tinggi Badan Otomatis Berbasis Arduino Dengan Output Suara", Scientific Journal Widya Teknik, Vol. 18, No. 2, 2019. [Online] Available : https://media.neliti.com/media/publications/549193-none86b7104d.pdf [Accessed : Dec. 20, 2024]
[13] kuongshun, “HX711 Weighing Sensor Dual-Channel 24 Bit Precision”, szks-kuongshun. [Online] Available : https://id.szks-kuongshun.com/uno/uno-sensor/hx711-weighing-pressure-sensor-module.html [Accessed : Jan. 1,2025]
[14] H. Budiman, "Analisis Pengujian Tarik (Tensile Test) Pada Baja St37 Dengan Alat Bantu Ukur Load Cell", Jurnal JEnsitec, Vol. 03, No. 01, Doi : https://dx.doi.org/10.31949/jensitec.v3i01.309 [Accessed : Dec. 20, 2024]
[15] A. Mahfud dan M. A. K. Nasution, “Prototype Sistem Penimbangan Otomatis pada Model Kernel Bulk Berbasis Arduino Uno”, Jurnal Teknologi, Vol. 15, No. 1, Jan. 2023. [Online] Available : https://jurnal.umj.ac.id/index.php/jurtek/article/download/15816/8425 [Accessed : Dec. 20, 2024]
[16] M. J. Manurung, P. Poningsih, S. R. Andani, M. Safii, dan I. Irawan, “Door Security Design Using Fingerprint and Buzzer Alarm Based on Arduino”, CNAHPC, vol. 3, no. 1, pp. 42-51, Feb. 2021, Doi : https://doi.org/10.47709/cnahpc.v3i1.929 [Accessed : Oct. 29, 2024]
[17] joy-it, “KY-012 Active Piezo-Buzzer module”, alldatasheet. [Online] Available : https://www.alldatasheet.com/datasheetpdf/pdf/1284500/JOY-IT/KY-012.html [Accessed : Oct. 29, 2024]
[18] A. N. Fadillah, A. D. Almazazi, dan M. Pardede, “Rancang Bangun Alat Komunikasi Antar Smartphone Melalui Jaringan Nirkabel Lora Multi-Hop”, Konferensi Nasional Sosial dan Engineering Politeknik Negeri Medan Tahun 2022, Vol. 3, No. 1, 2022, Doi : https://doi.org/10.51510/konsep.v3i1.927 [Accessed : Nov. 14, 2024]
[19] SEMTECH, “SX1276/77/78 - 137-1050 MHz Ultra Low Power Long Range Transceiver”, alldatasheet. [Online] Available : https://www.alldatasheet.com/datasheetpdf/view/800241/SEMTECH/SX1278.html [Accessed : Nov. 14, 2024]
[20] E. A. Prastyo, “Prinsip Kerja dari LoRa SX1278”, arduinoindonesia, Aug. 2022. [Online] Available : https://www.arduinoindonesia.id/2022/08/prinsip-kerjadari-lora-sx1278.html [Accessed : Nov. 14, 2024]
[21] S. Supriyadi, N. Nugraha, dan E. L, Nugraha, “Rancang Bangun Sistem Keamanan Rumah Dengan Metode Fuzzy Logic Menggunakan Mikrokontroller Berbasis Android”, JEJARING (Jurnal Teknologi dan Manajemen Informatika), vol. 5, no. 2, Nov. 2020, Doi : https://doi.org/10.25134/jejaring.v5i2 [Accessed : Dec. 18, 2024]
[22] F. Ardhy dan D. M. Efendi, “Perbandingan Metode Fuzzy Inferensi Tsukamoto Dan Sugeno Untuk Memprediksi Pemesanan Roti Jordan”, Jurnal Tekno Kompak, Vol. 12, No. 2, 2018, Doi : https://dx.doi.org/10.33365/jtk.v12i2.147 [Accessed : Dec. 30, 2024]