byte tombol = 2;
byte lampu = 3;
byte status_tombol;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(tombol, INPUT);
  pinMode(lampu, OUTPUT);
  // digitalWrite(lampu, HIGH);
}

void loop() {
  // put your main code here, to run repeatedly:
  status_tombol = digitalRead(tombol);
  Serial.println(status_tombol);
  if (status_tombol == 1)
    digitalWrite(lampu, HIGH);
  else
    digitalWrite(lampu, LOW);
}