[Sensor] code cleanup

sensor framework code cleanup.