Switches and push buttons
From wikiluntti
Introduction
Theory A: Simple switch
Theory B: Push Button

A double pole single throw push button micro switch (DPST) is a widely used button. Push button switches are often color coded to indicate their function.
Three methods to wire
- Internal resistor: Use
INPUT_PULLUP
in setuppinMode( Button_pin, INPUT_PULLUP);
- The bad method: