Automatic lighting system: The automatic lighting system allows any lights within the smart home to be switched on and off automatically when a person is in the area promoting a safer environment. The system uses motion sensor to detect the movement of a person to provide automatic illumination. Moreover, to save the energy, the system also equipped with photocell sensor allowing the system to operate only at night or in a dark environment. The automatic light system can be used in any rooms e.g. bedroom, living room, toilets, etc or at the stairways. An example use of the system is when a person walks downstairs during the night, the system can illuminate the stairways increasing visibility, promoting safety environment.