Check door state

Check the state of a specified door.