generating an average value of temp and humidity over 5 measurements