And if the pot is OK, make sure that you have actually connected it, as it is in the tutorial.
I still have painful memories on how long it took me realizing that "it must be set up as a voltage divider to give anything useful" back when I first started playing with micro-controllers.