HC-SR04 Fluctuation of Values for fast refresh rates

Oops, sorry, just noticed the delay(500).

Scratch that.

Check your power supply and decoupling.

Also, please use the auto format tool in the IDE before posting code.