potentiometer displaying wrong values

Hey,

My potentiometer is displaying values from 944, 1023 instead of from 0 to 1023. I know it's not the potentiometer or the code because I used both earlier and they worked fine. Is there anything i may be doing wrong in regards to the wiring. Here's a picture of my setup below.

Sorry, original post doesn't have the image:

We can't see the image. But I suspect your ground wire on the potentiometer is loose.