Delay? or any suggestions?

SEBA11:
I don’t know how to use the function

Have you read Using millis() for timing. A beginners guide and tried the examples ?