Digital I/O: Box Switch
I made a switch (SPST) from the small box my Arduino charger came in. When the box is closed, the switch returns 1. When the box is open, the switch returns 0.
The step/reset and counter programs are demonstrated in the YouTube video. My second switch was a large toggle switch that I bought.
I probably should have used a sturdier box for my switch, or made it activate by flattening it to one side or the other. Also, I learned that you can’t upload to the Arduino while digital ports 0 and 1 are connected to sensors.