Thanks for ur reply, i will like to ask U about some things,
U said that it is better to clean up the code, that's right it is messy :grin: im still learning, but my question is
is it not easier to use this sequence what i have already type in?
Because I can write 2 sequences
First is : when u past sensor bottom : LEDs goes on from bottom to top , and then when u past sensor top led goes off from bottom to top after 5 sec.
Second is : when u past sensor top : LEDs goes on from top to bottom , and then when u past sensor bottom led goes off from top to bottom aft