There are several constants in that equation that characterize the thermistor. If your thermistor I different from the one the sketch was written for you will get incorrect results.
If your thermistor did not come with a list of constants you can calculate the constants by measuring the resistance at three temperatures.