Today, electrical energy is a major need and we cannot do without it. The imperative need to generate electricity in any form leads to a catastrophic environmental impact worldwide, which is why we must opt for the optimization of the use of this, for an environmentally friendly future.For this reason, a domotic system is designed and implemented to optimize the consumption of electrical energy in the home. For demonstrative purposes, a model is made, which has a domotic central, sensors (presence, temperature, photoresistances) and actuators (motors, LEDs).For the interaction with the user we have Cayenne which is an IoT platform (Internet of things), in which the information of the domotic house can be monitored; depending on the mode of operation in which it is found it can interact with it, allowing the control of lights, ventilation, among others.For the correct use of the Cayenne platform, an internet connection is required, and this platform can be accessed through a mobile phone (cell phone) or a laptop.