Thank you for a speedy response. I have looked at the mills and i tried a few, but for sure i know i'm not implementing them correctly. What is supped to happen is while the car or object is in between the setPoints the LED come on, but i need it to go OFF after a period in the Millis as you mentioned. If i may ask how would i do that. This is where i need it to be in place. Just below this line.
if(range >= setPoint && range <= setPoint2 )
