if (led == HIGH){
digitalWrite(led, LOW);
}
You forgot a digitalRead. led has the value 13 and HIGH is defined as 1. So it will nver be true.
if (led == HIGH){
digitalWrite(led, LOW);
}
You forgot a digitalRead. led has the value 13 and HIGH is defined as 1. So it will nver be true.