I've searched for something like this but didn't found anything exactly like this.
I want to build a mail sensor with esp8266 and a Reed switch that, when the mail door is opened, sends an mqtt message to a broker. I wander of this can use the deepsleep mode everyone is talking while not "open" so I can spare the powerbank battery.
Thanks!