It seems to be very difficult to find the switch board in the dark but this project is really helpful to solve this problem. Follow the steps below to know the solution of this…..

n this project you will need :

1. NodeMCU (esp8266)
2. Relay
3. IR sensor
4. Bulb
5. Few jumper wires (connectors)”

Link