wait 10 seconds using mills() arduino code example
Example: arduino millis
/*Description
Returns the number of milliseconds passed since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately 50 days.
Syntax */
time = millis()
/*
Returns
Number of milliseconds passed since the program started.
Return Data type: unsigned long.
*/