Line Follower Robot

📦 Components

🔌 Connections

SensorPin
Left SensorA0
Right SensorA1
Motor LeftD5
Motor RightD6

💻 Code

int L = A0;
int R = A1;

void loop(){
if(analogRead(L) > analogRead(R)){
// left
}
else{
// right
}
}