Works fine then. I just picked a small cap from bench
const int sleepTimeS = 30;
ESP.deepSleep(sleepTimeS * 1000000);
When it hits it will reset and start the sketch again
The auto reset feature of arduino boards also use this technique on the DTR line and Sparkfun's "Thing" board uses it also .