Added avg sensor calculations and avg collection