just getting into arduino and coding and my 1st project is a knock sensor that lights up an led for a period of time. my problem is i cant get the knock sensor to set the led off, i ran a test for the knock sensor and there is a change in voltage across the terminals and then i ran a test for the led and that is working fine. my thought is that somewhere in the code its not joining the dots and im at a bit of a loss as to where to go from here.
ive added some files if someone would be so kind as to as to cast their eye across it that would be much appreciated
Firmware (1).zip (18.7 KB)