void setup() {pinMode(12,OUTPUT);pinMode(8,INPUT_PULLUP);
}
void loop(){
if(digitalRead(8)==0){digitalWrite(12, HIGH);}
else{ digitalWrite(8,LOW); }