Sliding pot does not read anything other than 0 or 1023

Set the slide about midway.

Why?
If it is a linear device, that will tell you almost nothing.