[hallsensor] calculate the average of a second (50 values) to reduce noise