Measuring HC-SR04 always change

Check the supply voltage to the HC-SR04. I found that it must be at least 5.00 volts to operate reliably. If you are powering your board from USB the voltage may be low.