changed Sensor back to old API