Microcontroller-Based Smart Control System for Automatic Lighting and Air Conditioning Control in Campus Facilities
DOI:
https://doi.org/10.31963/elekterika.v22i2.5879Keywords:
Smart Automation, ESP 32 Microcontroller, PIR Sensor, IoT monitoring, Energy EfficiencyAbstract
Energy inefficiency in campus facilities often arises from lights and air-conditioning (AC) systems operating without occupancy, leading to unnecessary electricity consumption. To address this issue, this research develops a microcontroller-based smart control system designed to automate lighting and AC operation using human-presence detection. The purpose of this study is to create and evaluate an ESP32-based automation system equipped with PIR HC-SR501 sensors and relay modules, complemented by IoT-enabled monitoring through Telegram notifications. The methodology includes system analysis, hardware and software design, prototype development, and performance testing in a classroom at Politeknik ATI Makassar. The ESP32 processes PIR sensor inputs to activate or deactivate loads based on detected movement, while Telegram provides real-time status updates. System evaluation focused on sensor detection accuracy, response time, relay reliability, and overall energy reduction. Experimental results show that the PIR sensor achieves over 90% detection accuracy within 4 meters and 30° viewing angle, with a response time of approximately 0.9 seconds. The automated control reduced daily operating time of lighting and AC units from 5.2 hours to 8 hours, yielding an estimated energy saving of 2.1 kWh per day—or about 27% reduction in power consumption. Telegram notifications demonstrated >98% accuracy, ensuring reliable remote monitoring. This research highlights the positive impact of integrating microcontroller-based automation and IoT monitoring for creating energy-efficient, smart-campus environments. The system offers a scalable solution for reducing operational costs, improving sustainability, and enhancing facility management in educational institutions.References
1] B. Mustafa, M. W. Iqbal, M. Saeed, A. R. Shafqat, H. Sajjad, and M. R. Naqvi, “IOT Based Low-Cost Smart Home Automation System,” in 2021 3rd International Congress on Human-Computer Interaction, Optimization and Robotic Applications (HORA), IEEE, Jun. 2021, pp. 1–6. doi: 10.1109/HORA52670.2021.9461276.
[2] N. A. Rabbani and Y.-L. Foo, “Home Automation to Reduce Energy Consumption,” International Journal of Technology, vol. 13, no. 6, p. 1251, Nov. 2022, doi: 10.14716/ijtech.v13i6.5930.
[3] L. Jia, “Design of a Smart Lighting System Based on Sensor Integration and Automation,” Science and Technology of Engineering, Chemistry and Environmental Protection, vol. 1, no. 5, Feb. 2024, doi: 10.61173/z9vn5c87.
[4] J. F. T. Atmaja, M. W. Sari, and P. W. Ciptadi, “Developing application of automatic lamp control and monitoring system using internet of things,” J Phys Conf Ser, vol. 1823, no. 1, p. 012002, Mar. 2021, doi: 10.1088/1742-6596/1823/1/012002.
[5] R. Perkasa, R. Wahyuni, R. Melyanti, H. Herianto, and Y. Irawan, “Light Control Using Human Body Temperature Based on Arduino Uno and PIR (Passive Infrared Receiver) Sensor,” Journal of Robotics and Control (JRC), vol. 2, no. 4, 2021, doi: 10.18196/jrc.2497.
[6] A. Jogdand, “Automatic Room Lights Controller Using Arduino and PIR Sensor,” Int J Res Appl Sci Eng Technol, vol. 9, no. 8, pp. 1947–1951, Aug. 2021, doi: 10.22214/ijraset.2021.37698.
[7] P. Rajakumar, B. C. Kanna, R. Archana, A. Akshaya, K. Abhinaya, and M. Boobalan, “Automation of Room Lighting System Using Arduino and PIR Sensor,” in 2022 International Conference on Power, Energy, Control and Transmission Systems (ICPECTS), IEEE, Dec. 2022, pp. 1–3. doi: 10.1109/ICPECTS56089.2022.10047213.
[8] Pratibha, R. Rajput, A. Yadav, A. S. Ansari, M. A. Husain, and S. P. Singh, “Designing of Automatic Corridor Lighting System Using PIR Motion Sensor,” in 2021 International Conference on Control, Automation, Power and Signal Processing (CAPS), IEEE, Dec. 2021, pp. 1–6. doi: 10.1109/CAPS52117.2021.9730730.
[9] R. W. Kusuma, D. Faiza, Thamrin, and S. Anori, “Automatic Light Control System for Bathroom Using Arduino Uno,” Journal of Hypermedia & Technology-Enhanced Learning, vol. 2, no. 3, pp. 229–244, Oct. 2024, doi: 10.58536/j-hytel.v2i3.134.
[10] A. H. Soomro, Imtiaz Ali Laghari, S. Q. A. Shah, A. S. Larik, and Saad Khan Baloch, “Energy-Efficient Automatic Lighting Control Using PIR Sensors and Solid State Relays,” Sir Syed University Research Journal of Engineering & Technology, vol. 15, no. 1, pp. 83–88, Jun. 2025, doi: 10.33317/ssurj.674.
[11] Suprianto, H. T. Frianto, A. F. Bin Abidin, M. F. bin M. Idros, and A. H. A. Razak, “Electrical Load Control Using PIR Sensor for IoT-based Electrical Power Saving,” International Journal of Research in Vocational Studies (IJRVOCAS), vol. 3, no. 4, pp. 198–203, Jan. 2024, doi: 10.53893/ijrvocas.v3i4.252.
[12] P. Aulia Resti Prasmita, N. Salsha Bila, Y. Illa Putri Fitriana, S. Paramitha Galuh Ratna Pratiwi, and R. Susanto, “Pengembangan Sistem Lampu Otomatis untuk Mengatasi Permasalahan Penerangan pada Rumah Adat Bolon,” Prosiding Seminar Nasional Teknologi Informasi dan Bisnis, pp. 1050–1056, Jul. 2025, doi: 10.47701/2fry4839.
[13] Refida Septiana Putri, Firman Nur Hidayat, Sony Subagyo, and Kuat Indartono, “Rancang Bangun Sistem Otomatisasi Lampu dan AC Berbasis IoT Menggunakan Sensor PIR dan IR Transmitter,” Elektrika, vol. 17, no. 2, pp. 81–87, Oct. 2025, doi: 10.26623/elektrika.v17i2.12547.
[14] D. Muslimah, P. Wahyu Ciptadi, and Rh. Hardyanto, “RANCANG BANGUN SISTEM DETEKSI GERAKAN MANUSIA UNTUK OTOMATISASI AIR CONDITIONING BERBASIS ARDUINO,” Oct. 2022.
[15] M. A. Afandi, S. Nurandi, and I. K. A. Enriko, “Automated Air Conditioner Controler and Monitoring Based on Internet of Things,” IJEIS (Indonesian Journal of Electronics and Instrumentation Systems), vol. 11, no. 1, p. 83, Apr. 2021, doi: 10.22146/ijeis.64563.
[16] N. H. Abdul Shukora, Z. M. P. Ahmad Baidowi, M. R. Mohd Isa, M. Y. Darus, and M. Abdullah, “Switching On/Off Air Conditioner and Fan Alternately based on IoT Motion Detection and Room Temperature,” JOIV : International Journal on Informatics Visualization, vol. 8, no. 3–2, p. 1560, Nov. 2024, doi: 10.62527/joiv.8.3-2.2721.
[17] C. S. Ying and C. PuiLin, “Real Time Object Detection for Sustainable Air Conditioner Energy Management System,” International Journal of Advanced Computer Science and Applications, vol. 15, no. 10, 2024, doi: 10.14569/IJACSA.2024.0151015.
[18] P. Santiprapan, K. Sengchuai, N. Jindapetch, H. Saito, and A. Booranawong, “Development of an adaptive device-free human detection system for residential lighting load control,” Computers & Electrical Engineering, vol. 93, p. 107233, Jul. 2021, doi: 10.1016/j.compeleceng.2021.107233.
[19] I. M. Siregar, N. F. Siagian, and V. M. M. Siregar, “Design of an Electric Light Control Device Using Arduino Uno Microcontroller-Based Short Message Service,” Internet of Things and Artificial Intelligence Journal, vol. 2, no. 2, pp. 98–110, May 2022, doi: 10.31763/iota.v2i2.560.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 MUTMAINNAH MUTMAINNAH

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.







