hc-sr04

Get the HCSR04 working on its own. Google "arduino hcsr04". There should be something to get you started within the 1.2 million hits.

Learn to read the potentiometer with analofRead().