The first thing you do is to restructure the program to use millis() for timing instead of delay() so that loop() can keep repeating freely
See Using millis() for timing. A beginners guide - Introductory Tutorials - Arduino Forum and Demonstration code for several things at the same time - Project Guidance - Arduino Forum