def METHOD_NAME(self, state=None):
    if state is None:
        _state = self.chan_state.getValue()
    else:
        _state = state
    _state = str(_state)
    if self.interlock_set is None:
        self.update_interlock_state()
    if not self.interlock_set:
        state = self.STATES.FAULT
        self.log.debug(
            "P11 Detector Distance is FAULT because interlock is not set"
        )
    else:
        if _state == "ON":
            state = self.STATES.READY
        elif _state == "MOVING":
            state = self.STATES.BUSY
        else:
            state = self.STATES.FAULT
    self.update_state(state)
    return state