this is what ive started with. i know its easier to use if statements for when the diodes detect the black tape against the white background but im not sure how to actually write it.
#include <Servo.h>
Servo servoLeft;
Servo servoRight;
int pd0 = 1;
int pd1 = 0;
int pd2 = 2;
void setup() {
servoLeft.attach(10);
servoRight.attach(9);
pinMode(pd0, INPUT);
pinMode(pd1, INPUT);
pinMode(pd2, INPUT);
Serial.begin(9600);
}
