Quoteyou can look for the rising edge rather than a specific levelthis method works really well when transmitting data, such as from a tv remote - but it wont work for line following. for line following you must analyze amplitude of a signal (amount of reflectance from the line). pseudocode:turn LED onwait 20us then measure transistor with ADC (A)turn LED offwait 20us then measure transistor with