Incomprehensible Error with my loops

avr_fred:

void loop()

{
  voltage = getVoltage();
  Serial.println(voltage);   
  if((voltage>=1.5) && (digitalRead(ILSH)==1 && (digitalRead(ILSL)==0)
      digitalWrite(LED,HIGH);
  else digitalWrite(LED,LOW);
}




If the above does not work, post the code that worked without the analog input.

Well, guess it saves some lines but still gets the problem that when I do the first if() to turn of the led I need to press one ILS then the other one.
Also basically my code with digital inputs replace the "voltage >=1.5" by a simple digitalRead()