void setup() {
pinMode(5, OUTPUT);
pinMode(15, INPUT);
}
void loop() {
if(digitalRead(15) == HIGH){
digitalWrite(5, HIGH);
} else {
digitalWrite(5, LOW);
}
}
void setup() {
pinMode(5, OUTPUT);
pinMode(15, INPUT);
}
void loop() {
if(digitalRead(15) == HIGH){
digitalWrite(5, HIGH);
} else {
digitalWrite(5, LOW);
}
}