Use millis() for the timing so as not to block the operation of the sketch
See Using millis() for timing. A beginners guide, Several things at the same time and the BlinkWithoutDelay example in the IDE
Use millis() for the timing so as not to block the operation of the sketch
See Using millis() for timing. A beginners guide, Several things at the same time and the BlinkWithoutDelay example in the IDE