IoT-Based Design of Automatic Home Lighting Using PIR Sensor and Manual Override

Authors

  • Muhammad Afrizal Bani Asshaf Unindra Author
  • Intan Mutia Author
  • Alusyanti Primawati Author

DOI:

https://doi.org/10.30998/faktorexacta.v19i3.1900

Keywords:

Smart Home Automation, Internet of Things, Microcontroller

Abstract

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

Download data is not yet available.

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

22-10-2026

How to Cite

Bani Asshaf, M. A., Mutia, I., & Primawati, A. (2026). IoT-Based Design of Automatic Home Lighting Using PIR Sensor and Manual Override. Faktor Exacta, 19(3). https://doi.org/10.30998/faktorexacta.v19i3.1900