Incomprehensible Error with my loops

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.