Implementing an ESP32 S3 to a 5V source requires care regarding current . While the ESP32 operates at 3.3V, using a 1k resistance can assist you to safely interface with 5V outputs. This approach https://compoden.com/collections/robotics-motion