A easy circuit demonstrates how for build an potential circuit using the ESP32 S3 processor & a 1k Ω impedance. With positioning two resistances on series, you can may reduce a voltage amount for an measurement http://theengineerstore.in/products/12v-mini-spot-welding-machine-automatic-control-10awg-multiwire-portable-transistor-18650-lithium-battery-spot-welder