I would like to send information to the server when a light is switched off/on.
My current scheme looks like this:
However, I would like to make it a little more energy efficient.
The sensor will be placed in the bathroom, so the light will normally be off.
Perhaps I could somehow wake up the ESP8266 using a photoresistor, then the ESP8266 would send information to the server and then go into deep-sleep mode or switch off? - the same when the light is turned off.
I am looking for help in designing such a circuit. What should I use? What should the circuit diagram look like?
My current scheme looks like this:
However, I would like to make it a little more energy efficient.
The sensor will be placed in the bathroom, so the light will normally be off.
Perhaps I could somehow wake up the ESP8266 using a photoresistor, then the ESP8266 would send information to the server and then go into deep-sleep mode or switch off? - the same when the light is turned off.
I am looking for help in designing such a circuit. What should I use? What should the circuit diagram look like?