The reset button on the shield should align perfectly with the reset button on the Arduino. The USB port on the Arduino should stick out the "short side" of the shield.
Place the shield over the pins. Press down evenly on the edges. You should hear a "click" as the plastic clips (if present) engage. arduino sensor shield v5 0 manual
void loop() // Sweep from 0 to 180 degrees for (pos = 0; pos <= 180; pos++) myservo.write(pos); delay(15); int distance = readUltrasonic(); Serial.print("Angle: "); Serial.print(pos); Serial.print(" cm: "); Serial.println(distance); The reset button on the shield should align