Scott Daniels did some research on Arduino voltage measuring. He found out the the analogread() function can be improved by using the internal 1.1 volt reference.
Using this reference one can read voltage more accurately. This can be used to see if your Arduino, when running on battery power, when it’s time to replace it. Also, you won’t lose a precious analog pin doing so.
Find the code and explanation on his website.