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

The circuit is wrong i actually will use 3 AA batteries but in the schematic is shows only 2 sorry about that.

4.5 volt input = 5V pin