A basic setup shows the way regarding build one potential divider by a ESP32 S3 module and the 1k ohm resistance. By connecting two resistances in sequence, one can reduce the potential amount to an measurement https://maximusbookmarks.com/story21685545/esp32-s3-and-1k-resistor-a-simple-voltage-divider