void setup(){ pinMode(13, OUTPUT); pinMode(7, INPUT); } void loop(){ // digitalWrite(13, digitalRead(7)); if(digitalRead(7)==HIGH){ digitalWrite(13, LOW); } else { digitalWrite(13, HIGH); } }