Added average calculations to sensor values.