The analog pin numbering can be confusing because the physical pin numbers don't match the logical pin numbers. And you have to use the
logical pin numbers with the analogRead() and analogWrite() functions, but use the
physical pin numbers when setting the mode.
The mappings are:
A0 <==> P5
A1 <==> P2
A2 <==> P4
A3 <==> P3
So if you change your code to use 'analogRead(5)', it should start giving more sane results.
However, if you look at the notes on the
excellent pinout diagram done by semicolo, you might note that P5/A0 has weaker signal than the other pins (an internal Atmel thing). And since P3 and P4 are used for USB, you might want to use P2/A1 for your testing.