Sketch merging issue?

Hi, guys.

I was hoping someone could help me figure out an issue I've been having with a sketch of mine. This code consists of 3 separate sketches from different sources (Not mine) which I have attempted to combine.
Namely, a secret knock code using a piezoelectric disk, a flame and water sensor code and a light sensor code. Each sketch works perfectly on its own. However, when combined, the knock code doesn't work properly. It was designed to detect a certain knock pattern and trigger an LED or solenoid lock, but when combined with the other sketches it doesn't seem to detect any knocks and/or work properly.

I haven't yet included the sketch because it's quite long and I'm afraid it exceeds the maximum character limit so let me know how I can overcome this.

Also let me know if any other information is required as I've been pulling my hair out trying to figure this out! :slight_smile:

I wish you well.

I wish you could have been of more help.

Without seeing the code we have no ability to help.

Without seeing the code we have no ability to help.

That's a bit blunt, if you don't mind me saying.

Is there any way of me posting the full code? It's over the character limit.

You could attach it.

Then those of us on mobile devices won't be able to see it, unless you attach it as, say, a .txt file.

Here is attached sketch file.


combining_all.ino (12.1 KB)

Maybe you missed the bit about attaching it as a .txt file.

My apologies!

combined sketch.txt (11.7 KB)

Any suggestions, guys?