Connecting an ESP32 to a 5V supply requires attention regarding amperage . While the ESP32-S3 operates at 3.3V, employing a 1k resistance can allow you to securely interface with 5V levels . This https://compoden.com/collections/sensors