Modified some the sensor reading averaging code.