Need Help in Sort Off Way

Show us a good schematic of your circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.


Don’t use delay( ) in your sketches.

Look at switch changes in state vs switch levels.

Research State Machine technique programming.

Review these: