This is the circuit
see here the vin is not connected to the esp32-s2, only ground is connected and the io line should have ~1.8v but i am getting ~1.1v. when the gnd is not connected to esp i get the correct value in the IO line.
r1 & r2 both are 100k, Vin is 3.7v at the time of measuring, as it's a 18650 battery. Source is DC.
I measured using a muiltimeter, one lid in ground another is in Vout.
Here is the Schematic, Pls note that all the values are not correct.
kk.pdf (79.7 KB)