-
In the future, do not attach pictures of your code.
-
Instead, attach your code as text so we can copy it and do changes to it.
-
The only time it might be acceptable to use delay(...) is when it is very short and doesn't repeat too often.
If delay()s are long and frequent, you should consider using the State Machine programming technique to incorporate non blocking delay periods,
1 Like