Merging 3 sketches NOOB ALERT!

Loz2212:
Thank you Robin. I have used 3 sketches I found online, these are not mine at all lol.

A PIR sensor, temperature sensor and microphone. Each one runs individually..

But you have not told us exactly what each of them does.

I'm unsure what you mean by global.

A global variable is one which is defined outside any function and is then available everywhere throughout the program. A local variable is one that is defined inside a function and consequently cannot be used outside the function.

For this sort of question Google is your friend.

...R