#define pinPB 15
#define pinLED 5

void setup() {
  pinMode(pinPB, INPUT);
  pinMode(pinLED, OUTPUT);
}

void loop() {
  if (digitalRead(pinPB) == HIGH)
  {
    digitalWrite(pinLED, HIGH);
  }
  else
  {
    digitalWrite(pinLED, LOW);
  }
}