const int PinLed    =  7;
const int PinButOn  =  8;
const int PinButOff =  9;

void setup() {
  Serial.begin(115200);
  pinMode (PinLed,    OUTPUT);
  pinMode (PinButOn,  INPUT_PULLUP);
  pinMode (PinButOff, INPUT_PULLUP);
}

void loop() {
  if (LOW == digitalRead (PinButOn)) 
    digitalWrite (PinLed, HIGH);    // turn on

  else if (LOW == digitalRead (PinButOff))
    digitalWrite (PinLed, LOW);   // turn off
}