added method _avgSensorValues and fixed bugs