basic functionality for temp and humidity sensors