Example Code for Arduino-Line Tracking Data Reading
Last revision 2025/12/17
Wiring Diagram

Sample Code
///Arduino Sample Code
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println(digitalRead(2)); // print the data from the sensor
delay(500);
}
Was this article helpful?
