Implementation of a Sound Sensor-Based Automatic Light Switch Using a Wemos D1 R32 Microcontroller in a Classroom

  • Muhamad Maulana Ihsan Darunnajah University, Jakarta, Indonesia
  • Wahyu Joko Saputro Darunnajah University, Jakarta, Indonesia
Keywords: Sound Sensor; Automatic Light Switch; Wemos D1 R32; Internet of Things; Energy Efficiency

Abstract

The development of Internet of Things (IoT) technology and intelligent control systems has encouraged the
use of microcontroller devices to support energy efficiency and comfort in learning environments. One of the problems
often encountered in classrooms is the use of inefficient lights, such as lights left on even when not in use or late turning
off the lights after learning activities are finished. This study aims to design and implement a sound sensor-based
automatic light switch system using a Wemos D1 R32 microcontroller in a classroom. This system is designed to detect
certain voice commands, such as clapping or sound intensity at a certain threshold, which are then processed by the
microcontroller to control the condition of the lights (on or off). The research method used is Research and
Development (R&D), which includes the stages of needs analysis, system design, hardware and software development,
testing, and system performance evaluation. The sound sensor is used as the main input to detect audio signals from the
environment, while the Wemos D1 R32 functions as a control center that processes data and activates relays as light
switches. The test results show that the system is able to respond to voice commands with a good success rate in
relatively normal classroom environmental conditions. The implementation of this system contributes to increasing the
efficiency of electrical energy use in classrooms and provides convenience for users without having to directly contact
manual switches. Furthermore, this system also supports technology-based learning concepts and can be used as a
practical learning medium for students in electronics and IoT. Therefore, the implementation of a sound sensor-based
automatic light switch using the Wemos D1 R32 is expected to be an innovative solution for managing educational
facilities more intelligently and sustainably

References

Alam, M., Reaz, M. B. I., & Ali, M. A. M. (2021). A review of smart homes—Past, present, and future. IEEE Transactions on Systems, Man, and Cybernetics: Systems, 51(1), 507–522. https://doi.org/10.1109/TSMC.2019.2923331

Arifin, Z., & Maulana, R. (2024). Implementasi ESP32 pada sistem otomasi ruang kelas. Jurnal Sistem Cerdas, 7(1), 55–63. https://doi.org/10.37396/jsc.v7i1.621

Chen, X., Li, Y., Zhang, H., & Wang, Z. (2021). Design of an IoT-based smart lighting system for energy efficiency. IEEE Access, 9, 45812–45823. https://doi.org/10.1109/ACCESS.2021.3067894

Hidayat, N., & Prakoso, B. (2025). Sistem kontrol lampu otomatis berbasis sensor suara dan ESP32. Jurnal Teknologi dan Sistem Komputer, 13(1), 1–9. https://doi.org/10.14710/jtsiskom.2025.17543

Hossain, M. A., Islam, R., & Ahmed, F. (2023). Voice recognition-based automation system for smart buildings. Computers, 12(4), 78. https://doi.org/10.3390/computers12040078

Kaur, J., & Kaur, P. (2023). A review on voice controlled IoT systems. International Journal of Electronics and Communication Engineering, 17(2), 133–141. https://doi.org/10.5281/zenodo.7745123

Kumar, R., & Singh, P. (2021). Voice controlled home and building automation using IoT. International Journal of Engineering Research and Technology, 10(3), 245–251. https://doi.org/10.17577/IJERTV10IS030143

Lee, C. Y., Kim, J. H., & Park, S. Y. (2025). Intelligent classroom lighting control using IoT and voice interface. IEEE Access, 13, 25410–25421. https://doi.org/10.1109/ACCESS.2025.3345120

Lumbantobing, M. (2022). Sistem kendali lampu otomatis berbasis sensor suara dan mikrokontroler. Brilliance: Research of Artificial Intelligence, 2(1), 45–52. https://doi.org/10.47709/brilliance.v2i1.1543

Nguyen, T. T., Pham, H. D., & Tran, Q. H. (2024). Smart lighting systems in educational buildings: A review. Buildings, 14(1), 112. https://doi.org/10.3390/buildings14010112

Prasetyo, A., & Wibowo, S. (2023). Rancang bangun sistem saklar lampu pintar berbasis IoT. Jurnal Informatika dan Rekayasa Elektronik, 6(2), 210–218. https://doi.org/10.36595/jire.v6i2.512

Putra, R. D., & Nugroho, A. (2022). Implementasi sistem lampu otomatis berbasis IoT menggunakan ESP32. Jurnal Teknologi Informasi dan Ilmu Komputer, 9(2), 321–329. https://doi.org/10.25126/jtiik.202292321

Rahman, A., Islam, M. J., & Hossain, M. S. (2021). ESP32-based smart automation system using sensors and IoT platform. Sensors, 21(5), 1678. https://doi.org/10.3390/s21051678

Rasuli, M., Kurniawan, D., & Saputra, E. (2023). Voice assistant-based lighting control using ESP32. Journal of Applied Engineering and Technological Science, 4(1), 1–9. https://doi.org/10.37385/jaets.v4i1.357

Saha, H. N., Mandal, A., & Sinha, A. (2021). Recent trends in IoT based smart classroom systems. Journal of Ambient Intelligence and Humanized Computing, 12, 671–684. https://doi.org/10.1007/s12652-020-02468-3

Singh, A., & Verma, S. (2024). IoT-based energy management system for smart classrooms. Energy Reports, 10, 345–353. https://doi.org/10.1016/j.egyr.2023.11.102

Siregar, H., & Ramadhan, R. (2023). Pengembangan smart classroom berbasis Internet of Things. Jurnal Pendidikan Teknologi dan Kejuruan, 20(1), 15–24. https://doi.org/10.21831/jptk.v20i1.49876

Surani, D., Pratama, A., & Hidayat, R. (2022). Voice-based smart home control using ESP32. International Journal of Advanced Computer Science and Applications, 13(4), 112–119. https://doi.org/10.14569/IJACSA.2022.0130414

Wang, L., Xu, Q., & Li, S. (2022). Energy-efficient smart classroom design using IoT technologies. Sustainability, 14(7), 3892. https://doi.org/10.3390/su14073892

Zhang, Y., Liu, J., & Chen, H. (2022). Smart lighting control system based on IoT and sensor integration. Energies, 15(3), 978. https://doi.org/10.3390/en15030978

Published
2025-12-23
How to Cite
Ihsan, M. M., & Saputro, W. J. (2025). Implementation of a Sound Sensor-Based Automatic Light Switch Using a Wemos D1 R32 Microcontroller in a Classroom. JOISTECH: Journal of Information System and Technology, 2(2), 60-65. Retrieved from https://mail.ejournal.darunnajah.ac.id/index.php/joistech/article/view/762