#define sensorPin1 34 // pin that the Bottom/Left sensor is attached to
#define sensorPin2 35 // pin that the Right sensor is attached to
// variables:
int sensorValue1 = 0; // Bottom/Left photoresistor
int sensorValue2 = 0; // Right photoresistor
void setup() {
Serial.begin(9600);
pinMode(sensorPin1, INPUT);
pinMode(sensorPin2, INPUT);
}
void loop()
{
sensorValue1 = analogRead(sensorPin1);
sensorValue2 = analogRead(sensorPin2);
Serial.print("left reading sensor value=");
Serial.println(sensorValue1); // the left/bottom sensor analog reading
Serial.print("right reading sensor value = ");
Serial.println(sensorValue2); // the right sensor analog reading
delay(1000);
}