Use HC-SR04 Ultrasonic Sensor to move a motor

I am starting to feel like such a noob, but how do you add debug prints?