A easy setup demonstrates how for form an electrical circuit by a ESP32 S3 microcontroller plus the 1k ohm resistor. Using placing pair of resistances on order, one can reduce an voltage quantity to an measurement http://theengineerstore.in/collections/e-bike-parts