From the draw you have all the i/ps going to +5V
Use internal pull ups on the i/ps.
When you unplug a wire, plug that wire into a grounded bus bar (connected to 0 Volts).
From the draw you have all the i/ps going to +5V
Use internal pull ups on the i/ps.
When you unplug a wire, plug that wire into a grounded bus bar (connected to 0 Volts).