Can't get correct value from thermistor

You can also rewrite your Rth calculation to fit your setup:

Rth = (Vin - V) * R1 / V.