Implementation of Finite State Machine on Cluster Housing Security System Based on LoRa with Telegram Notification
DOI:
https://doi.org/10.33795/jartel.v15i4.7848Keywords:
Cluster Housing, Home Security, LoRa, Magnetic Switch, PIR SensorAbstract
Cluster housing is a residential area with a single access gate system that is widely applied in urban areas. Although equipped with security officers, theft cases in cluster housing still often occur due to the limitations of the system in providing warnings quickly. This study aims to design a home security system that is able to detect suspicious activity and send warnings from home to the security post via LoRa communication. This system uses a magnetic switch sensor to detect door conditions and a PIR sensor to detect movement around the house. The test results show that the magnetic switch sensor can detect an open door when the distance between the magnet and the reed switch exceeds 20 mm, while the PIR sensor is effective in detecting movement up to 5 meters from angles of 0°, 45°, and 90°. Notifications to Telegram are sent with an average delay time of 2-13 seconds. LoRa communication range testing shows that the system is able to send data stably up to a distance of 120 meters in Line of Sight (LoS) and Non-Line of Sight (NLoS) conditions. With the ability to detect threats directly and a wide communication range, the system is expected to improve security in residential areas well.
References
T. Supriyanto *et al*., “Rancang bangun sistem keamanan rumah di perumahan cluster menggunakan komunikasi long range (LoRa),” 2023.
A. Purnama and S. Sitohang, “Rancang bangun sistem keamanan rumah berbasis IoT,” *Jurnal Comasie*, vol. 6, no. 1, 2022.
Indobot, “Datasheet NodeMCU ESP8266 lengkap,” *Indobot Academy*. Accessed: May 11, 2025. [Online]. Available: [https://blog.indobot.co.id/datasheet-nodemcu-esp8266-lengkap-dengan-pin-dan-cara-akses/](https://blog.indobot.co.id/datasheet-nodemcu-esp8266-lengkap-dengan-pin-dan-cara-akses/)
Pusiknas Bareskrim Polri, “Data kriminalitas periode 2024,” *pusiknas.polri.go.id*. Accessed: Jan. 27, 2025. [Online]. Available: [https://pusiknas.polri.go.id/data_kejahatan](https://pusiknas.polri.go.id/data_kejahatan)
Ngopibareng.id, “Sepakan kriminalitas di Jatim tembus 1.463 kasus, paling banyak di permukiman,” *Ngopibareng.id*. Accessed: Jan. 27, 2025. [Online]. Available: [https://www.ngopibareng.id/read/sepekan-kriminalitas-di-jatim-tembus-1-463-kasus-paling-banyak-pemukiman](https://www.ngopibareng.id/read/sepekan-kriminalitas-di-jatim-tembus-1-463-kasus-paling-banyak-pemukiman)
A. R. Maulana and A. H. P. Yuniarto, “Rancang bangun sistem keamanan rumah berbasis Internet of Things (IoT) sebagai upaya pencegahan tindak pencurian,” *Jurnal Teras Fisika*, vol. 7, 2024, doi: 10.59134/jlmt.v20i2.605.
B. Harpad, S. Salmon, and R. M. Saputra, “Sistem monitoring kualitas udara di kawasan industri dengan NodeMCU ESP32 berbasis IoT,” *Jurnal Informatika Wicida*, vol. 12, no. 2, pp. 39–47, 2022, doi: 10.46984/inf-wcd.1955.
Mutiaraindotv, “Percobaan pencurian di perumahan Patokan Cluster berhasil digagalkan oleh warga di Kelurahan Ardirejo,” *Mutiaraindotv*. Accessed: Jan. 27, 2025. [Online]. Available: [https://mutiaraindotv.com/percobaan-pencurian-di-perumahan-patokan-cluster-tertangkap-warga-di-kelurahan-ardirejo/](https://mutiaraindotv.com/percobaan-pencurian-di-perumahan-patokan-cluster-tertangkap-warga-di-kelurahan-ardirejo/)
Surya.co.id, “3 pelaku pencurian di perumahan di Cerme Gresik diringkus, curi barang seharga Rp90 juta,” *Surya.co.id*. Accessed: Jan. 27, 2025. [Online]. Available: [https://surabaya.tribunnews.com/2020/02/25/3-pelaku-pencurian-di-perumahan-di-cerme-gresik-diringkus-curi-barang-seharga-rp-90-juta](https://surabaya.tribunnews.com/2020/02/25/3-pelaku-pencurian-di-perumahan-di-cerme-gresik-diringkus-curi-barang-seharga-rp-90-juta)
F. Ratnasari, P. W. Ciptadi, and R. H. Hardyanto, “Sistem keamanan rumah berbasis IoT menggunakan mikrokontroler dan Telegram sebagai notifikasi,” *Dinamika Informatika*, pp. 160–163, 2021.
I. P. Dewi and R. Fikri, “Optimalisasi keamanan rumah dengan implementasi sistem notifikasi gerbang cerdas berbasis Internet of Things (IoT),” *Journal of Computer System and Informatics (JoSYC)*, vol. 4, no. 4, pp. 816–829, 2023, doi: 10.47065/josyc.v4i4.4004.
Darso, M. H. Al Hudry, F. Fathoni, Y. Ulkhaq, P. T. R. Wijaya, and M. Arkan H., “Perancangan sistem pendeteksi dan monitoring ketinggian air berbasis IoT menggunakan NodeMCU ESP8266,” *STORAGE: Jurnal Ilmiah Teknik dan Ilmu Komputer*, vol. 2, no. 3, pp. 87–93, 2023, doi: 10.55123/storage.v2i3.2307.
F. F. Iman, “Purwarupa smart door lock menggunakan multi sensor berbasis sistem Arduino,” pp. 1–7, 2017.
Techiesms, “ESP32 development board Doit DevKit V1 (Wroom32 module),” *Techiesms*. Accessed: May 20, 2025. [Online]. Available: [https://techiesms.com/product/esp32-development-board-doit-devkit-v1/](https://techiesms.com/product/esp32-development-board-doit-devkit-v1/)
Easy Electronics, “Easy Electronics NodeMCU WiFi development board ESP8266,” *Amazon.in*. Accessed: May 11, 2025. [Online]. Available: [https://www.amazon.in/Easy-Electronics-NodeMcu-Development-Board/dp/B06XYRS6KC](https://www.amazon.in/Easy-Electronics-NodeMcu-Development-Board/dp/B06XYRS6KC)
