The ADC is 10-bits so the highest possible reading is 1023. Your 1020 indicates 3V (if that's your Vcc).

The 600 that fades indicates the ADC input is floating.

The 0 reading indicates the 0V.