This is a very simple library to use one of the two pin ultrasonic range finders with an Arduino system. The library includes a 2 and a 1 wire version of the same function which measures mm.
There's no timeout currently so don't disconnect the device mid read.