Design and Construction of an Automatic Mosque Locking System Using Internet of Things (IoT) Technology with An-droid Smartphone Control

Authors

  • Imam Tri Suryadin Universitas Muhammadiyah Gombong

DOI:

https://doi.org/10.55606/jeei.v5i3.3692

Keywords:

Internet of Things (IoT); Smart Lock; Mosque Security; NodeMCU; MQTT; Android; Automa-tion

Abstract

The continuous evolution of the Internet of Things (IoT) has significantly transformed how devices interact and exchange information, enabling automation in various fields, including facility security systems. Mosques, as community-based facilities, still rely heavily on manual locking mechanisms that are time-consuming and prone to human error or key loss. This study presents the design and implementation of an IoT-based automatic mosque locking system that can be monitored and controlled via an Android smartphone. The system architecture integrates a NodeMCU ESP8266 microcontroller as the central control unit, a relay module to activate a servo-powered door lock, and a magnetic reed sensor to identify door status. Communication between the hardware and mobile interface is established using the MQTT protocol connected through the Blynk IoT cloud platform. Experimental evaluation confirms that the system can perform remote locking and unlocking within an average latency of 1–2 seconds, depending on Wi-Fi signal strength. Furthermore, the system provides automatic status updates and notifications when the door is opened or closed. The prototype demonstrates reliable performance, energy efficiency, and ease of use for mosque administrators. In conclusion, the proposed IoT-based smart lock solution successfully enhances mosque security management and shows promising potential for wider adaptation to other public facilities requiring secure and remotely accessible control systems.

References

[1] M. Alvi, F. Iqbal, and S. Bukhari, "IoT based smart home automation using NodeMCU and Blynk," International Journal of Advanced Computer Science and Applications, vol. 13, no. 6, pp. 45–52, 2023, doi: 10.14569/IJACSA.2023.0130611.

[2] PS Reddy and R. Kumar, “Design and Implementation of IoT-based Smart Door Lock System Using NodeMCU,” IEEE Access, vol. 11, pp. 27589–27598, 2023, doi: 10.1109/ACCESS.2023.3245667.

[3] AU Rahman, M. Ali, and N. Khan, “Secure Smart Lock System using MQTT Protocol,” International Conference on Computing, Electronics and Communications Engineering (iCCECE), IEEE, pp. 1–6, 2022, doi: 10.1109/iCCECE54197.2022.9993387.

[4] RW Santoso et al., “Prototype of Smart Door Lock Based on ESP8266 and Android Application,” Journal of Computer Technology and Systems, vol. 11, no. 3, pp. 215–222, 2023.

[5] MSA Reza and K. Rahman, "Home Automation System Using IoT with NodeMCU," International Journal of Engineering Research & Technology (IJERT), vol. 11, no. 2, pp. 110–116, 2022.

[6] Y. Zhang, S. Li, and W. Zhang, “An IoT Based Access Control System with MQTT Protocol,” IEEE Internet of Things Journal, vol. 10, no. 5, pp. 3856–3864, 2023.

[7] MRK Islam and A. Hussain, “Implementation of a Secure IoT-based Door Lock System with Real-Time Notification,” IEEE Sensors Journal, vol. 24, no. 4, pp. 4551–4560, 2024.

[8] SA Saputra, D. Hidayat, and TA Nugroho, “IoT-Based Automatic Mosque Door Locking System,” Journal of Electrical and Computer Engineering (JTEK), vol. 8, no. 2, pp. 55–62, 2023.

[9] KS Ramesh, PV Kumar, and LJ Devi, “IoT Enabled Smart Locking System Using ESP8266,” Procedia Computer Science, vol. 218, pp. 129–135, 2023.

[10] SP Singh and D. Sharma, “Development of Smart Lock System Based on IoT and Android Application,” International Journal of Electrical and Computer Engineering, vol. 13, no. 1, pp. 987–995, 2023.

[11] H. Nguyen, “Low-Cost IoT-Based Smart Access Control System with Cloud Integration,” IEEE Transactions on Consumer Electronics, vol. 70, no. 2, pp. 1125–1133, 2024.

[12] L. Setiadi, D. Rachmawati, and T. Utami, “Implementation of the Internet of Things in a Home Security System Using NodeMCU and Magnetic Sensors,” Journal of Informatics and Intelligent Systems (JISCe), vol. 7, no. 1, pp. 20–28, 2023.

[13] JP Wijaya and M. Anwar, "A Smart Lock System with Biometric and IoT Integration," TELKOMNIKA Telecommu-nication Computing Electronics and Control, vol. 21, no. 4, pp. 855–863, 2023.

[14] SR Prabowo and T. Kurniawan, "Design of Mosque Automation System Using IoT for Security and Energy Efficiency," Indonesian Journal of Electronics and Instrumentation Systems, vol. 13, no. 2, pp. 89–97, 2023.

[15] J. Park, D. Lee, and K. Kim, “A Comparative Study of IoT Communication Protocols: MQTT vs. HTTP in Smart Home Context,” IEEE Access, vol. 12, pp. 77512–77524, 2024.

[16] BH Nugraha and MD Rahmat, “Implementation of Android Application for IoT Device Control Using MQTT Protocol,” Journal of Information Technology and Computer Science (JTIIK), vol. 10, no. 2, pp. 345–353, 2023.

[17] A. Hassan et al., “Performance Analysis of IoT-based Smart Security Systems Using ESP8266,” International Conference on Smart Computing and Communication (ICSCC), IEEE, pp. 215–222, 2023.

[18] D. Cahya and R. Hidayat, "IoT-Based Access Monitoring System for Mosque Security," Journal of Applied Intelligent Systems, vol. 6, no. 1, pp. 43–50, 2024.

[19] KN Kumar, “Optimization of MQTT Communication in IoT Smart Devices,” IEEE Internet Computing, vol. 27, no. 3, pp. 67–74, 2023.

[20] MG Saputra, LF Hamdi, and A. Anwarudin, "Implementation of Smart Lock System Based on IoT for Mosque Facili-ties," Proceedings of the 2024 International Conference on IoT Applications (ICOIA), IEEE, pp. 133–140, 2024.

Downloads

Published

2025-10-31

How to Cite

Imam Tri Suryadin. (2025). Design and Construction of an Automatic Mosque Locking System Using Internet of Things (IoT) Technology with An-droid Smartphone Control. Journal of Engineering, Electrical and Informatics, 5(3), 29–46. https://doi.org/10.55606/jeei.v5i3.3692