This project demonstrates how to use a voltage divider to read in analog voltages with an Arduino. Since we are using a voltage divider the voltage that the chip sees is within it’s range even though in this case the voltage measured can be up to 50 volts. The Arduino then calculates the actual 4 analog volages and outputs them on an LCD. Have a look at the code provided to implement this in your next project.
Via: Electronics Lab