HC-SR04 always return ZERO with Arduino UNO

Code works fine with my Uno and HCSR-04. Are you sure that the rangefinder is wired right (pin 3 to trigger, Pin 2 to echo) and the wires are good (check them with a DMM)?