Incomprehensible Error with my loops

Do you really need to know the voltage? 1.5 V = ADC value of 307 (with 5V AREF):

if((analogRead(IRS)>=307) && (digitalRead(ILSH)==1)