Connecting a 1k resistance to a 5V source with an ESP32 S3 device requires precise consideration. The ESP32 S3's digital pins are typically intended for lower voltages , generally 3.3V. Directly applying 5V https://compoden.com/collections/dev-boards