int button = 0;
void setup() {
// put your setup code here, to run once:
pinMode(2, INPUT);
pinMode(13, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
button = digitalRead(2);
if(button = HIGH){
digitalWrite(13, HIGH);
} else{
digitalWrite(13, LOW);
}
}