How to read voltage and use the power at the same for (EX. Servo)

I mean not use a voltage sensor like the B25 voltage sensor. I would like to create my own out of resistors either a voltage divider or just a single resistor.

Some tutorials I watches are here - -

Thankyou for the replies