My knock sensor is just knocking endlessly without any knocks to trigger it

Thanks PeterH, that's pretty simple. I had the brilliant idea of trying it out on a breadboard (another first) and now its working fine. Grumpy Mike, thanks for your smug yet correct comment.