Under normal conditions the contact of the switch is closed.
If one side of the switch is connected to GND/0V and the other side is connected to an input pin and a pull-up to +5V then (under normal conditions) the Arduino sees a solid 0 volts.
Noise will not effect this input.
When the micro switch opens under an alarm condition/position the Arduino sees +5 volts on the pin.