Problem reading in Arduino serial port with 5K potentiometer
It sounds like it might be a wiring problem. Check that you have the potentiometer connected correctly. Your circuit should look something like this: