[Sensor] Updated implementation of privilege checks.