Is the thermocouple a K type?
The code given in the link I gave works.
Check the hardware. Bad connections or backwards connection on the thermocouple or wrong type will cause problems.