What will the output of the code be if the relative velocity between the object and the sensor is 0, and it is within the range of the sensor for the entire time both are moving?
A. clear+clear+1+1
B. 1+1+clear+clear
C. clear+clear+clear+clear
D. 1+1+1+1
Code:
int op = 6;
int isObstacle = HIGH;
void setup() {
pinMode(op, INPUT);
Serial.begin(9600);
}
void loop() {
isObstacle = digitalRead(op);
if (isObstacle == LOW) {
Serial.println("1+");
}
else {
Serial.print("clear+");
}
delay(200);
}
B. 1+1+clear+clear
C. clear+clear+clear+clear
D. 1+1+1+1