update spark code to use Steinhart-hart equation