Merging 3 sketches NOOB ALERT!

Loz2212:
I've attached my code that I have tried my best with.

How many programs have been merged into that program? (the correct answer is 2 :slight_smile: )

Did you do as I said and get all three programs working separately with compatible pin usage and variable names?

I don't think you have told us what each of the separate programs does and what the merged program is intended to do?

@PaulS may not have a great bedside manner, but his diagnoses are always worth considering carefully. However I am more comfortable using global variables whereas he prefers local variables where possible.

...R