Using Ultrasonic Range Finder SRF02 as Motion Detector

Sorry. Seems that I'm almost sleeping :sleeping:
Although I think the next code is right

 if(val1 == HIGH && val2 == HIGH && f < 15){
    Serial.println('1');
    //Serial.print(',');
  }
  if(val1 == LOW || val2 == LOW || f >15){
    Serial.println('0');
    //Serial.print(',');

the first condition if(val1 == HIGH && val2 == HIGH && f < 15) isn't being detected. Arduino is just printing 0s

I will get crazy at the end of this... seems simple but there's always a little problem