Added method for getting the average reading over the last X values