Newbee programming question: I want one thing in my sketch to run every 5 minutes and another thing run every 30 seconds. If I use the wait function, the program just stops for that period of time without doing anything else. What would be the appropriate way to handle the two timing issue?
Look at the 'blink without delay' example sketch for a demonstration of how to carry out one timed activity while enabling the sketch to carry on doing other things. You can use this approach to support as many different activities as you like.