I am making a device to tell me the current position of my door lock. This device will need to run on battery and utilize the deep sleep function. I have a normally open reed sensor. This sensor closes when the door is locked. Initially I had another normally open sensor on the door lock that would awake my esp-12e from deep sleep and publish status when the door would be locked->unlocked and unlocked->lock. The space limitations inside the lock made it challenging and it wasnt accurate.
Now I am trying to see if I can utilize deep sleep with just one normally open reed sensor that I am utilizing to tell me if the door is locked. Ideally I would want the esp-12e (also have esp32 available which I just learned can awake from more than one input) to trigger when the reed sensor is in the open status, which will mean the door is unlocked. Then ideally the same magnet can wake the esp-12e when door is locked again (reed is closed).
Is there a way to do this?