Hardware used:
Arduino
LED
Sound Detection Sensor
LDR(Light Dependent Resistor)
Software Used:
Arduino IDE
Circuit :
The value of LDR depends on the intensity of the light. During day-time the system is programmed in such a way that the LED doesn't get turned on or off. A different mechanism is used to turn it on and off manually. But during the night time the sensor becomes active and sense the noise. If the intensity of the noise is greater than the threshold intensity, the light turns on or off depending on the current condition of light. A added feature to this system is that it turns off the light(if kept on by mistake) automatically if it detect that it's day. At the same time if the manual switch is on the light remains on and needs to be controlled manually.
Advantages:
No need to stand up and turn on and off light during night.
Turns off the light automatically.
Disadvantage:
Can control only one electrical appliance.