Code to use the SRF02 ultra sonic distance sensor with an arduino. It gives you millimetre accuracy without waiting on the sensor to do its ranging.