reed sensor with deep sleep on battery

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?

If the result does not have to be immediate, that is you can wait say 60 seconds for a message about the state of the door lock, you could use the periodic wakeup option of deep sleep. The device wakes up, checks the state of the switch (which is then connected to a pin other than the reset pin) and, either sends a message on each wakeup or sends a message if the state of the switch has changed from the previous state.