Led keeps on after statement is reached

pert:
If you auto format your code then these lines:Would be properly indented:

  else

{
    digitalWrite(LED, LOW);
  }
}

I'm done discusing this, i see no benefits in this.