adjust the sensor register/unregister.