I am developing a battery powered device that will wake when a sensor switch goes high. Now I also need the device to go back to hibernate mode and wait for the sensor switch to