Why is my switch not working?
See my page about switches. Judging by your very-hard-to-read diagram, you have just connected the switch to an input pin like this:





That will not give a positive reading either way because it is "floating". You should connect a pull-up or pull-down resistor, like this:



Now if the switch is open, it is pulled-up to 5V by the resistor and the input will read HIGH. When the switch is closed the switch conducts and "overpowers" the resistor, and it would read LOW.



An alternative is to use a pull-down resistor like this:



That reverses the sense of the switch. When open it will read LOW and when closed it will read HIGH.



I hope you have a resistor in series with the LED.