Merging 3 sketches NOOB ALERT!

I don't really know what I'm supposed to say. I have a setup where I'm wanting the PIR sensor and Microphone sensor to detect sound or movement and simply output to a motor for 5 seconds. I'm working with a fabricator and welder as he is wanting to patent an idea, this is why I can't say exactly what it does (if that's what you mean).

I'm sorry if I'm coming across as ignorant.. I'm just thick and struggling to understand this.

The PIR sensor I just want to detect human movement and switch an output high for 5 seconds. The same for the microphone. Nothing else needed.

The temperature sensor is just to monitor the ambient air temp and output on the serial monitor.

I'm changing all the things you are asking as I go. I'm trying to do the best with what I know. It's all alien to me. If you need anything else from me or me to be more specific please ask. Apologies again for anyone I appear to have p****d off.