a = distance;
yep sir!.. i'm sorry for that.. this was my first program.
Thank you sir for the code. wait i'm compiling it. but there's a problem that says ('index' was not declared in this scope)..
ow just found the error. It's working sir!.. Thank you.
now my problem is comparing the ranges, and after that the servo will face the nearest range.
just stay there sir. i have more questions ![]()
ow sorry if i call you sir. i just want to give respect. :))