The middle terminal is the common. When the switch is at rest (door open), there will be continuity between the common terminal and one of the other two. When it is triggered (door closed), the continuity between the common and the first is broken, and made between the common and the other.