A sensor that detects the state of the door. There are various types of states such as open, closed, held open, and forced open that can be checked.