How to run code while a delay is in place

HI there,

I want to be able to run code in the loop while there is a 5 minute delay in it, is there anyway to keep the delay running and let the code still run instead of waiting for the loop to finish?

If you mean that you want to do things whilst doing something else for 5 minutes look at the BlinkWithoutDelay example in the IDE. The technique that it uses allows you to check periodically whether the time is up and if not go and do something else.

You can't.

Look at the blink without delay example to see how you can do it using the millis() timer.