Connecting a 1k resistor to a 5V voltage with an ESP32 S3 board requires thoughtful consideration. The ESP32 S3's digital pins are typically intended for lower potentials , generally 3.3V. Directly https://compoden.com/collections/passive-components