Connecting an ESP32 S3 to a 5V supply requires attention regarding amperage . While the ESP32 S3 operates at 3.3V, using a 1k resistor can help you to properly interface with 5V signals . This approach https://compoden.com/collections/sensors