if sensor == null return