Serial problem

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?

Have a look at the "blink without delay" example that came with the IDE for a clue.