Connecting a 1k resistance to a 5V supply with an ESP32 S3 module requires thoughtful consideration. The ESP32 S3's digital pins are typically designed for lower voltages , generally 3.3V. Directly applying https://compoden.com/collections/power-energy