Temperature sensor class template