add average sensor

-modify class onSensorChange to average return
-modify sensor information