Use HC-SR04 Ultrasonic Sensor to move a motor

Are you remembering that your two readings are very close together in time, and that your target is unlikely to have moved very far?