I wrote it for someone having this combination. We do not have it for testing ourself, so we never knew if it works properly.
So can you say what is happening?
Make sure the analog pin is not one of the thermistor ones and none of the thermocouple ones. These modify the input value and will not work I think.