Initializes ultrasonic sensor.