Connecting a 1k resistor to a 5V voltage with an ESP32 S3 device requires careful consideration. The ESP32 S3's logic pins are typically rated for lower potentials , generally 3.3V. Directly introducing 5V https://compoden.com/collections/power-energy