Connecting an ESP32 to a 5V source requires care regarding amperage . While the ESP32 operates at 3.3V, inserting a 1k resistance can assist you to properly interface with 5V outputs. This technique https://sociallawy.com/story12690316/esp32-s3-projects-utilizing-a-1k-resistor-with-5v