void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7,INPUT);
}

void loop() {
  if(digitalRead(7)==HIGH)
  {
    digitalWrite(LED_BUILTIN);
    digitalWrite(6, LOW);
  }
  else
  {
    digitalWrite(LED_BUILTIN);
    digitalWrite(6, HIGH);
  }

}