Jurnal Nasional Teknologi Komputer
Vol 6 No 4 (2026): Oktober 2026

Implementasi Sistem Kendali Lampu Otomatis Berbasis IoT Menggunakan ESP32 dan Sensor PIR

Dhimas Aryo Wicaksono (Universitas Pembangunan Panca Budi)
Muhammad Zen (Universitas Pembangunan Panca Budi)
Hafni (Universitas Pembangunan Panca Budi)



Article Info

Publish Date
25 Sep 2026

Abstract

The evolution of Internet of Things (IoT) technology has revolutionized human interaction with the built environment, driving a massive shift toward energy efficiency and comfort through the smart building concept. Artificial lighting systems represent a critical element of building infrastructure that frequently contributes to energy waste. This research aims to design, implement, and rigorously test an IoT-based automatic lighting control system that integrates an ESP32 System-on-Chip (SoC) microcontroller with a Passive Infrared (PIR) sensor, a 5V 2-channel electromechanical relay module, a physical push-button switch, and the cloud-based Blynk interface application. A hybrid system architecture was developed, dividing operational control into two primary modes—manual and automatic—defined in real-time via the Blynk virtual pin communication protocol. In automatic mode, the PIR sensor monitors thermal infrared radiation from human movement to dynamically activate the lights using a software-interrupt (timer-based) algorithm, whereas manual mode maintains local physical control through a hardware pull-up interrupt technique on the push-button switch, alongside remote control via Blynk widgets. Comprehensive testing of the developed firmware demonstrated high reliability with exceptionally low average transmission latency. Furthermore, energy efficiency analysis indicated a potential for significant reductions in electrical power consumption in areas with intermittent occupancy. The implementation of this hybrid system demonstrates that integrating cloud-based digital control need not eliminate local manual control redundancy; instead, it creates a reliable synergy that supports energy sustainability in modern households.

Copyrights © 2026






Journal Info

Abbrev

jnastek

Publisher

Subject

Computer Science & IT

Description

Jurnal Nasional Teknologi Komputer di bidang ilmu komputer dan teknologi. Jurnal JNASTEK diterbitkan oleh CV. Hawari. Redaksi mengundang peneliti, praktisi, dan mahasiswa untuk menulis perkembangan ilmiah di bidang-bidang yang berkaitan dengan teknologi informasi, teknik informatika dan sistem ...