Unstable Potantiometer

Show your circuit. Have you connected the pot to 0 V, 5 V and an analog input? Could it be that your pot is not linear?