In this article, the primary purpose is to design and implement a remote light control example that makes use of the Arduino IDE platform for programming, the MQTT protocol, and an ESP32 microcontroller, which has a dual-core CPU as well as Wi-Fi and Bluetooth capabilities. This aspect is related to the Internet of Things (IoT), which allows any fundamental device to be linked and become a smart device via the application of the Internet. As a result, these devices can be operated from a significantly long-distance, eliminating the need to physically interact with the switches to turn them on or off. The first part of the paper is a discussion of the fundamental theory that is provided to examine the potential of remote control methods, followed by a short overview of the Arduino integrated development environment (IDE), MQTT communication protocol, and PWM technique to regulate the brightness of lights. The second section is devoted to hands-on work, such as setting up an environment connection over the Internet, compiling and designing a printed circuit board (PCB).