Dcmotor control using sonar to determine the speed

You may want to spend a bit of time with Google. I searched for "tip120 motor" and the first four hits looked rather helpful.