// Enrico William A. Sihotang_A022008

#define slideswitch 4
#define led 12


void setup()
{
 
  pinMode(slideswitch, INPUT);
  pinMode(led, OUTPUT);

  Serial.begin(9600);


}


void loop()
{

  int switchRead = digitalRead(slideswitch);
  Serial.println(switchRead);

 
  if (switchRead == HIGH) {
    digitalWrite(led, HIGH);
  } else {
    digitalWrite(led, LOW);
  }
delay(550);
}