ESP-12E Deep Sleep, Reset


I have a project where an ESP-12E checks for different scenarios. If a scenario exists, my code on the ESP-12E shuts down a device by changing the state of a GPIO pin. When this routine is triggered I would like to also put the ESP-12e into deep sleep. To wake up the ESP-12E, I would like for their to be 5v-12v DC on a wire, though this 5v-12v DC might exist during normal operation. It appears to make this happen I might have to introduce another component. What would be the best way to accomplish this.