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.. however, I have attempted to now add an output so there is a good chance I've knackered it up.
I'm basically wanting the PIR and Microphone to output to a motor, run it for 5 seconds and stop. Then the programs just resumed until another input is detected. The temperature is there to be monitored on the serial monitor with no intended output.
Apologies for any incorrect terminology.
I'm unsure what you mean by global.
Thank you.