Linking an ESP32 to a 5V supply requires care regarding current . While the ESP32 operates at 3.3V, employing a 1k resistance can assist you to securely interface with 5V levels . This technique https://compoden.com/collections/passive-components