IoT-Based Design of Automatic Home Lighting Using PIR Sensor and Manual Override
DOI:
https://doi.org/10.30998/faktorexacta.v19i3.1900Keywords:
Smart Home Automation, Internet of Things, MicrocontrollerAbstract
Smart home automation systems are recognized as innovative methods to enhance comfort, efficiency, adaptability, and environmental connectivity. This study presented an IoT-based automatic home lighting system that combined occupancy sensing, ambient-light sensing, local override, scheduling, and remote control. The implemented prototype utilized an ESP32 microcontroller, an HC-SR501 Passive Infrared (PIR) sensor, a Light Dependent Resistor (LDR), a 5V relay, a physical push button, Network Time Protocol (NTP) synchronization, and an Android application. The control policy activated the lamp automatically only when motion was detected under low-light conditions, while local and remote modes allowed user intervention. Functional testing verified consistent PIR detection within a range of 1 to 5 m at an approximately 110° field of view and prevented automatic lamp activation when ambient illumination exceeded the configured 500-lux threshold. On a stable local Wi-Fi network, the application-to-relay response time ranged between 120 and 250 ms, while scheduled ON/OFF execution was within ±1 s. The manual override remained operational during Wi-Fi disconnections, and state changes were timestamped in the activity log. These results demonstrate reliable multimodal lighting control; however, direct electrical-energy savings were not quantified because the prototype did not include a power-metering module.
Downloads
References
[1] M. Garcia-Ruiz dan P. C. S. Mancilla, DIY Microcontroller Projects for Hobbyists: The ultimate project-based guide ... - Miguel Angel Garcia-Ruiz, Pedro Cesar Santana Mancilla - Google Books. 2021.
[2] M. Ghafurian, C. Ellard, dan K. Dautenhahn, “An investigation into the use of smart home devices, user preferences, and impact during COVID-19,” Computers in Human Behavior Reports, vol. 11, hlm. 100300, Agu 2023, doi: 10.1016/J.CHBR.2023.100300.
[3] S. A. Ajagbe, O. A. Adeaga, O. O. Alabi, A. B. Ikotun, M. A. Akintunde, dan M. O. Adigun, “Design and development of arduino-based automation home system using the internet of things,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 33, no. 2, hlm. 767–776, Feb 2024, doi: 10.11591/ijeecs.v33.i2.pp767-776.
[4] E Control Devices, Sensors for IOT Applications. 2021.
[5] J. Nasir dkk., Robot dan Microcontroller. 2024. Diakses: 2 Januari 2026. [Daring]. Tersedia pada: https://www.researchgate.net/profile/Januardi-Nasir/publication/378488230_Robot_dan_microcontroler/links/65dca555adf2362b635a051d/Robot-dan-microcontroler.pdf
[6] M. Almutairi dan F. T. Sheldon, “IoT–Cloud Integration Security: A Survey of Challenges, Solutions, and Directions,” 1 April 2025, Multidisciplinary Digital Publishing Institute (MDPI). doi: 10.3390/electronics14071394.
[7] J. M. Schulz dan J. S. Scilla, “Broad Perspective of Smart Home Technology in 2024,” International Journal of Smart Technologies, vol. 1, no. 1, hlm. 1–27, Agu 2024, doi: 10.4018/ijst.350186.
[8] S. Rangaswamy, “An Overview of Network Time Protocol,” 2021. [Daring]. Tersedia pada: http://www.gjstx-e.cn/
[9] M. Fezari dan A. Al Dahoud, “Integrated Development Environment ‘IDE’ For Arduino Introduction to Arduino IDE.”
[10] P. Chavan, A. Ali, R. H. C, R. H. V, H. K. H, dan E. G. Satish, “Analysis of Wireless Networks: Successful and Failure Existing Technique,” dalam Data Science and Intelligent Computing Techniques, Soft Computing Research Society, 2023, hlm. 877–891. doi: 10.56155/978-81-955020-2-8-75.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Muhammad Afrizal Bani Asshaf, Intan Mutia (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Under the CC BY-NC 4.0 License, users are permitted to:
-
Share: Copy, distribute, and transmit the material across any medium or format.
-
Adapt: Remix, transform, and build upon the work for non-commercial purposes.
These permissions are granted provided the following conditions are met:
-
Attribution (BY): Proper credit must be given to the original author(s) and Faktor Exacta, including a direct link to the license and a clear indication of any modifications made. This acknowledgment must not imply endorsement by the journal or the authors. Reusers are required to include the article’s Digital Object Identifier (DOI) for permanent citation reference.
-
NonCommercial (NC): The material may not be exploited for commercial purposes or monetary gain. Any commercial utilization, republication, or integration into commercial goods requires explicit, prior written permission from the copyright holder(s).
-
No Additional Restrictions: No legal provisions or technological protection measures (such as DRM) may be applied to restrict others from exercising the freedoms granted by this license.
Official Legal Code: For the full and legally binding terms, please review the official Creative Commons Attribution-NonCommercial 4.0 International Public License.

