I am designing a line following robot that utilizes a sensor that is made with a Phototransistor [L-7113P3C] and IR LED [L-7113F3BT]. However, when I use a UART and put the robot design that's supposed to follow a line using a sensor the values that are outputted are very similar even on light or dark surfaces? any idea what's going on?
Links to components:
Code for ADC: