The DetectionMode Variable indicates if the defection sensor is active (when the value is True) or not active (when the value is false).