Measuring distance with hc-sr04

What is the target? Different target materials reflect ultra sound differently (a hanging cloth curtain might not reflect at all). "Clutter" or angled targets will cause funky reflections. How often are you ranging? You must wait long enough for reflections to die down or you will get errors.