Write an Arduino Program that detects a reflectivesurface using the line sensor array of a QTR-3RC (*Must be specificto this sensor! please this is important*)
Must include a function that when calledreturns..
0 (line to the left of the robot)
1 (line under the robot on the left side)
2 (line under the robot on the right side)
3 (line to the right of the robot)
Output the results to the serial port in 0.5 secondintervals
PLEASE USE CODE SPECIFIC TO QTR-3RC SENSOR!!!!!! Ihave already looked at the Arduino website for the code and manyother codes online, I will know if it from a website. Idon't mean to beharsh, just please don't waste my money. Please do not answer itunless you know how to answer it.