Read analog and print something if position has changed from up to down

potInitial - potCurrent) == 10Relying on exact equality is probably not a good idea as it would be easy to miss when the pot is adjusted. In any case, it seems to me that you should simply check whether the pot has moved by at least a certain amount in the appropriate direction, which is what I think you were doing originally.