Written for the arduino Uno
Linear interpolation approximates a local set of data into a linear function
Steinhart-hart function is better at approximating thermistor behaviour
Using the sample data from Datasheet for R1, R2, R3 → T1, T2, T3; we can generate a predicted model function
At 100°C the predicted R value is 3.33Ω which corresponds to 3.3051Ω on the datasheet

$A=0.8153122506e^{-3}$
$B=2.240693240e^{-4}$
$C = 0.9025712244e^{-7}$
Temperature is in Kelvins
$\frac{1}{T} = A + Bln(R) + Cln(R)^3$
inverse of equation: