int kondisiSwitch;
void setup() {
pinMode(11, OUTPUT);
pinMode(10, INPUT);
}
void loop() {
kondisiSwitch = digitalRead(10);
if (kondisiSwitch == HIGH) {
digitalWrite(11, HIGH);
delay(100);
}
else {
digitalWrite(11, LOW);
delay(100);
}
}