//STEF //Fab Academy Interface //Code const int button = 10; const int sensor = 1; const int led1 = 8; int s1, s2; const int pinservo1=1; void setup() { Serial.begin(9600); pinMode(button,INPUT); pinMode(sensor,INPUT); pinMode(led1,OUTPUT); } void loop() { s1= digitalRead(button); s2= digitalRead(sensor); if (s1==1||s2==0) {digitalWrite(led1,HIGH); Serial.print(1); } else { digitalWrite(led1,LOW); Serial.print(0); } delay(20); }