Obstacle detection using an ultrasonic sensor and a PIC microcontroller
You are checking for a delay of 128ms or more. According to the equation given in the manual here , distance measured will be 21m which is way beyond the maximum range of the module as given in the same document. In my experience, the module did not return any pulse if there's no obstacle in the measurable range.