Linear temperature sensor