ESP32 deep sleep debounce

That's true, delay() should come at the beginning, otherwise it wouldn't execute. I still think it would be valid.