This basic setup shows the way to build a voltage circuit with a ESP32 S3 processor and a 1k ohm resistance. Using positioning dual resistances in sequence, you can are able to lower the voltage amount for a measurement https://bookmarkshome.com/story7441102/esp32-s3-and-1k-resistor-a-simple-voltage-divider