Detecting Potential Dangers in Elderly Bathrooms using a PIR-Based Notification System and Magnetic Sensor
DOI:
https://doi.org/10.56211/tsabit57Keywords:
IoT; Elderly; Bathroom; PIR Sensor; Magnetic Sensor
Abstract
Bathrooms represent one of the most hazardous environments for elderly individuals due to the high risk of falls, prolonged inactivity, and delayed emergency response. Early detection of potentially dangerous situations is therefore crucial to improve safety and reduce injury risks. This study proposes a notification system for detecting potential dangers in elderly bathrooms using a Passive Infrared (PIR) sensor and a magnetic door sensor. The PIR sensor is utilized to monitor human presence and movement patterns, while the magnetic sensor detects door status to identify abnormal conditions, such as prolonged bathroom occupancy or lack of movement after entry. The system is designed to automatically trigger notifications to caregivers when predefined risk conditions are detected. The proposed system was implemented using a microcontroller-based platform and evaluated through a series of controlled experiments simulating typical and abnormal bathroom usage scenarios. Performance evaluation focused on detection accuracy, response time, and system reliability. The experimental results indicate that the system is capable of effectively identifying potentially dangerous situations and delivering timely alerts to caregivers. The integration of PIR and magnetic sensors provides a simple, low-cost, and non-intrusive solution for enhancing elderly safety in domestic environments. This research demonstrates the potential of sensor-based notification systems to support assisted living and improve the quality of care for elderly individuals.
Downloads
References
Book:
[1] Indah Purnama Sari. Algoritma dan Pemrograman. Medan: UMSU Press, 2023, pp. 290.
[2] Indah Purnama Sari. Buku Ajar Pemrograman Internet Dasar. Medan: UMSU Press, 2022, pp. 300.
[3] Indah Purnama Sari. Buku Ajar Rekayasa Perangkat Lunak. Medan: UMSU Press, 2021, pp. 228.
[4] Janner Simarmata Arsan Kumala Jaya, Syarifah Fitrah Ramadhani, Niel Ananto, Abdul Karim, Betrisandi, Muhammad Ilham Alhari, Cucut Susanto, Suardinata, Indah Purnama Sari, Edson Yahuda Putra. Komputer dan Masyarakat. Medan: Yayasan Kita Menulis, 2024, pp.162.
[5] Mahdianta Pandia, Indah Purnama Sari, Alexander Wirapraja Fergie Joanda Kaunang, Syarifah Fitrah Ramadhani Stenly Richard Pungus, Sudirman, Suardinata Jimmy Herawan Moedjahedy, Elly Warni, Debby Erce Sondakh. Pengantar Bahasa Pemrograman Python. Medan : Yayasan Kita Menulis, 2024, pp.180
[6] Zelvi Gustiana Arif Dwinanto, Indah Purnama Sari, Janner Simarmata Mahdianta Pandia, Supriadi Syam, Semmy Wellem Taju Fitrah Eka Susilawati, Asmah Akhriana, Rolly Junius Lontaan Fergie Joanda Kaunang. Perkembangan Teknologi Informatika. Medan: Yayasan Kita Menulis, 2024, pp.158
[7] Muharman Lubis Ilham Firman Ashari, Debby Erce Sondakh, Rahmawati Rolly Junius Lontaan, Mustarum Musaruddin Indah Purnama Sari, Muh. Nadzirin Anshari Nur, Hanalde Andre Muh. Rais, Janner Simarmata. Internet of Things (IoT) Dan Multimedia: Integrasi Dan Aplikasi. Medan: Yayasan Kita Menulis, 2024, pp.182
Journal Article from the Internet
[8] Sunkudon, M., Palandeng, H., & Kallo, V. (2015). PENGARUH SENAM LANSIA TERHADAP STABILITAS TEKANAN DARAH PADA KELOMPOK LANSIA GMIM ANUGERAH DI DESA TUMARATAS 2 KEC. LANGOWAN BARAT KAB. MINAHASA. ejournal Keperawatan (e-Kp) Volume 3. Nomor 1.
[9] Dady, F., Memah, H. P., Kolompoy, J.A. (2019). HUBUNGAN BAHAYA LINGKUNGAN DENGAN RISIKO JATUH LANJUT USIA DI BPLU SENJA CERAH MANADO. JPPNI Vol. 03/o.03.
[10] Tintya, T. A., Priyatmono, A.F., Setiawan, W. (2023). Identifikasi Kesesuaian Ergonomi Kamar Mandi Dengan Antropometri Lansia. http://siar.ums.ac.id/ .
[11] Sari, I.P., Batubara, I.H., & Basri, M. (2022). Implementasi Internet of Things Berbasis Website dalam Pemesanan Jasa Rumah Service Teknisi Komputer dan Jaringan Komputer. Blend Sains Jurnal Teknik 1 (2), 157-163
[12] Matondang, M.H.A., Asadel, A., Fauzan, D., & Setiawan, A.R. (2024). Smart Helmet for Motorcycle Safety Internet of Things Based. Tsabit Journal of Computer Science 1 (1), 35-39
[13] Sari, I.P., Novita, A., Al-Khowarizmi, A., Ramadhani, F., & Satria, A. (2024). Pemanfaatan Internet of Things (IoT) pada Bidang Pertanian Menggunakan Arduino UnoR3. Blend Sains Jurnal Teknik 2 (4), 337-343
[14] Husaini, A., & Sari, I.P. (2023). Konfigurasi dan Implementasi RB750Gr3 sebagai RT-RW Net pada Dusun V Suka Damai Desa Sei Meran. sudo Jurnal Teknik Informatika 2 (4), 151-158
[15] Dewi, S. R. (2019). Status Nutrisi Lansia dan Risiko Jatuh Pada Lansia. THE INDONESIAN JOURNAL OF HEALTH SCIENCE. Vol. 11, No.1.
[16] Sari, I.P., Al-Khowarizmi,A.K., Apdilah, D., Manurung, A.A., & Basri, M. (2023). Perancangan Sistem Pengaturan Suhu Ruangan Otomatis Berbasis Hardware Mikrokontroler Berbasis AVR. sudo Jurnal Teknik Informatika 2 (3), 131-142
[17] Wardani., S, & Dewantoro., RW. (2024). Internet of Things: Home Security System based on Raspberry Pi and Telegram Messenger. Indonesian Journal of Applied Technology, Computer and Science 1 (1), 7-13
[18] Sari, I.P., Al-Khowarizmi, A.K., Hariani, P.P., Perdana, A., & Manurung, A.A. (2023). Implementation And Design of Security System On Motorcycle Vehicles Using Raspberry Pi3-Based GPS Tracker And Facedetection. Sinkron: jurnal dan penelitian teknik informatika 8 (3), 2003-2007
[19] Turyadi, I. U., Johan, F., Widyanto, D. (2021). Analisa Dukungan Internet of Things (IoT) terhadap Peran Intelejen dalam Pengamanan Daerah Maritim Indonesia Wilayah Timur. Vol. 7 No. 1.
[20] Selay, A., Andgha, G. D., Alfarizi, M. A., Wahyudi, M. I. B., Falah, M. N., Khaira, M., Encep, M. (2022). INTERNET OF THINGS. Volume 1 Nomor 6. 861-862
[21] Sandrina., Wahyuni, S., Eravan, E. (2023). Penerapan Sensor PIR Pada Mata Pelajaran Instalasi Penerangan Listrik di SMKN 1 Darul Kamal. Volume 1, Nomor 1. 17.
[22] Sari, I.P., Basri, M., Ramadhani, F., & Manurung, A.A. (2023). Penerapan Palang Pintu Otomatis Jarak Jauh Berbasis RFID di Perumahan. Blend Sains Jurnal Teknik 2 (1), 16-25
[23] Sumardi. (2017). MODEL CONTROL LAMPU KAMAR MANDI MENGGUNAKAN SENSOR PASSIVE INFRARED RECEIVER BERBASIS ARDUINO UNO. l Volume 1 No. 2.
[24] Siswanto., Utama, G. P., Gata, W. (2018). Pengamanan Ruangan Dengan Dfrduino Uno R3, Sensor Mc-38, Pir, Notifikasi SMS, Twitter. Vol. 2 No. 3.
[25] Sari, I.P., & Batubara, I.H. (2020). Aplikasi Berbasis Teknologi Raspberry Pi Dalam Manajemen Kehadiran Siswa Berbasis Pengenalan Wajah. JMP-DMT 1 (4), 6
[26] Virgiawan., Amini, S., Purwanto. (2021). PERANCANGAN KEAMANAN RUANGAN DENGAN SENSOR PIR DAN MAGNETIC DOOR SWITCH BERBASIS WEB. SKANIKA VOLUME 4, NO 2.
[27] Sutanti, A., Komaruddin, M., MZ., Mustika., Damayanti, P. (2020). RANCANG BANGUN APLIKASI PERPUSTAKAAN KELILING MENGGUNAKAN PENDEKATAN TERSTRUKTUR. Vol. 9, No. 1. 2-3
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Dwi Arfi Ananda, Farid Akbar Siregar

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish in Tsabit Journal of Computer Science agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
CC BY-SA: This license allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, so long as attribution is given to the creator. The license allows for commercial use. If you remix, adapt, or build upon the material, you must license the modified material under identical terms.









