Millis() code needs improvement

Thanks for your answers, the code is all working now. I'll try to put the code in like told next time
Greetings NiekS