debugging for sensorChange event