This is a new simple binary switch example that can be uses  for window/door sensors or trigger buttons (like a doorbell).

The example takes advantage of  the internal pull up resistor of the Arduino board (no need for external pull-up resistor) when connecting a button or reed switch.

Debounce library is also used to minimize debounce problems.