Current society is undergoing an unprecedented digital transformation that is changing our interaction with technology. The disruptive advancements of Industry 4.0, based on technologies from the fourth industrial revolution, have a significant impact on disciplines such as electrical engineering, business administration, computer science, technology, and software, among others. These advancements integrate physical, digital, and biological technologies such as artificial intelligence, robotics, data analysis, and the Internet of Things (IoT). The technology of 5G and IoT are closely related, enabling the integration of automated and monitored homes, along with the interconnection of devices through distributed sensors in various platforms and services with extensive data processing and storage capabilities. 5G, with its fast connection speed and low latency, is crucial for the full development of IoT and other technologies such as augmented reality, autonomous vehicles, and telemedicine. IoT emerges as an evolutionary complement to communication and computer science applied to objects, allowing interaction through the Internet. The implementation of smart homes begins with the installation of internet-connected devices such as sensors, thermostats, and smart appliances that can be interconnected to achieve automated processes and optimized energy consumption. However, along with the opportunities offered by home automation through IoT, challenges related to security also arise. It is essential to implement adequate security measures such as strong passwords, frequent updates, firewalls, and antivirus software to protect connected devices from potential external attacks and manipulations. Users must also be aware of the importance of maintaining security in their homes and take immediate action to mitigate risks in the event of threats.