This paper reports on a system that can save electricity. Many times we leave the room and hall without switching off lights and fans, thus electricity is wasted. In this work we have presented a system in which energy will be saved based on number of people entering in or leaving out of the room. If there is no person in the room, then light and fan will be switched OFF. On the other hand as soon as any person enters the room, light and fan will be switched ON. On the basis of the intensity of sunlight we can increase or decrease the intensity of light. Simultaneously we can vary the speed of the fan sensing the room temperature. The more temperature the more speed of the fan. A smoke sensor module is used for detecting any smoke within the room and provides safety by alarming the audio device.