Linking an ESP32-S3 to a 5V voltage requires caution regarding amperage . While the ESP32 operates at 3.3V, using a 1k resistor can assist you to properly interface with 5V signals . This technique https://compoden.com/collections/motors