Connecting a 1k resistance to a 5V voltage with an ESP32 S3 module requires thoughtful consideration. The ESP32 S3's internal pins are typically designed for lower potentials , generally 3.3V. Directly https://compoden.com/collections/robotics-motion