Simple ultrasonic range finder using arduino. Circuit diagram, program and theory