if statement

Hi!

When I put O2 value below 716 my LED turns on. In the next loop i change O2 value above 818 but the LED never turns LOW again, why?

int LED=8;
int O2_pin=A1;
int O2=0;

void setup() {
  Serial.begin(9600);
  pinMode(LED,OUTPUT);
}

void loop(){
  O2=analogRead(O2_pin);
if (O2<716){
    digitalWrite(LED, HIGH);
  }
if (02>818) {
    digitalWrite(LED, LOW);
  }

Serial.println(O2);
delay(1);

}

You have a mix of "oh"-2 and "zero"-2

just to be clear (neiklot nailed it)

if ([b][color=green]O[/color][/b]2<716){
...
if ([b][color=red]0[/color][/b]2>818) {