Connecting a 1k resistor to a 5V source with an ESP32 S3 module requires thoughtful consideration. The ESP32 S3's internal pins are typically rated for lower potentials , generally 3.3V. Directly applying 5V https://compoden.com/collections/sensors