Hello @alexylem

only so called RTC_GPIOs can wake ESP32 from deep sleep. Unfortunately GPIO_NUM_5 is not one of them.

Please check out page 15 - Pin description of the ESP32 datasheet.

Thanks
Felix