Serial problem

alva:
@Nick Gammon:

Thank you for advice. However, if I don't use delay, based on your experience, what function should I use to hold the led to light for 5 second?