Sliding pot does not read anything other than 0 or 1023

Hi, from the datasheet, pin 1 is one end of the pot, pin3 is the other and pin2 is the slider.
So pin1 to gnd, pin3 to 5V, pin2 to arduino analog input.
What reading does the arduino give when you have the slide midway.?

Tom........ :slight_smile: