hc-sr04

Time to learn to think for yourself then.

Have you done anything in the meantime?
Got the sensor to detect a distance, for starters?
Got to read the pot?
Got to switch on/off your relay? (tip: use Blink for that; pro tip: use Blink Without Delay).