I have several readings from some sensors. The goal is to print them one by one with a delay of 3 sec. It is fairly easy to do, but the problem is that there is a button and if i set those delays with delay() i have to catch up the time in a loop to press it. If i set it with delay() Arduino will wait for 3 sec between readings. That way button part in sketch will be accessible every 15 sec or so.
Is there a way to achieve it that Arduino go through, say five readings with a delay of 3 seconds, but still read button press?
I am not sure which way to approach to this problem. What logic to use.