In this project there are 4 circuits controlled by a PIC16F877a. The lights are replaced with LEDs. In addition to the contol lights, the PIC checks the state (open-close) of doors and windows. The sensors are replaced with switches. A simulation of presence system (SSP), turn on some lights of the house, when one or more motion sensors in the garden are activated. A protection system for absence (SPA) disconnect the electrical elements, in our case, the lights of the house. A graphical user interface, built with Visual BASIC 6, communicates with the proteus project through a virtual serial port. The user can enable or disable the control systems manually with switches or by the graphical interface.