Measuring Voltage of Battery

Read this
http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/