//stef_first exercise const int sensor = 10; const int led1 = 8; int s1; const int pinservo1=1; void setup() { Serial.begin(9600); pinMode(sensor,INPUT); pinMode(led1,OUTPUT); } void loop() { s1= digitalRead(sensor); if (s1==1) {digitalWrite(led1,HIGH); Serial.print(1); } else { digitalWrite(led1,LOW); Serial.print(0); } delay(20); }