This site really helped me to measure accurate voltage with an arduino:Measuring accurate voltage with an Arduino – AutoTT