TomGeorge: Why aren't you using the NewPing library
I am not convinced that he is using an ultrasonic sensor