Linking an ESP32 to a 5V voltage requires caution regarding current . While the ESP32 operates at 3.3V, using a 1k resistance can assist you to securely interface with 5V levels . This method https://compoden.com/collections/batteries