The output is a fixed fraction of the input:
VOUT = VIN × R2 ÷ (R1 + R2) = VIN × 10k ÷ 20k = VIN ÷ 2
To read a battery of up to 12 V with a 5 V microcontroller input, use R1 = 15 kΩ and R2 = 10 kΩ: 12 × 10 ÷ 25 = 4.8 V at full charge.
A divider is a signal circuit, not a power supply. Whatever you connect to VOUT is in parallel with R2 and pulls the voltage down; an ADC input (very high impedance) is fine, a motor or LED is not. Use a regulator such as the 7805 for power.