Can't get correct value from thermistor

Your equation for Rth assumes a set up like so:

5V -- 10K -- A -- T -- GND