#define switch_1 1

void setup() {
pinMode(11,OUTPUT);
pinMode(switch_1,INPUT);
}

void loop() {
if(digitalRead(switch_1)==true) {
  digitalWrite(11,HIGH);
}
else
digitalWrite(11,LOW);
}