Servo Library and NewPing Interrput Conflict?

PaulS:
Servos, commanded using the Servo library are sent new position data based on timers. There are limited number of timers available. Those same timers are responsible for PWM on the PWM pins. Using a pin for a servo effectively removes the ability to perform PWM on some pins. Which ones depends on which timers has been usurped for the Servo libraries use. Which timer is usurped depends on the pin the servo is connected to.

Is it possible to change servo pins to correct this?

PaulS:
Ping sensors do not return a value to an analog pin. Some other kinds of ultrasonic sensors do. You realyl would need to tell us what kind of sensor you really have.

I have a HC-SR04. Datasheet

PaulS:
You include the NewPing header file, but never instance the NewPing class. Including the NewPing header file is, therefore, useless. Why do you do it?

I used the example code from the NewPing library. Not entirely sure what you are referring to here..

// ---------------------------------------------------------------------------
// Example NewPing library sketch that does a ping about 20 times per second.
// ---------------------------------------------------------------------------

#include <NewPing.h>

#define TRIGGER_PIN  12  // Arduino pin tied to trigger pin on the ultrasonic sensor.
#define ECHO_PIN     11  // Arduino pin tied to echo pin on the ultrasonic sensor.
#define MAX_DISTANCE 200 // Maximum distance we want to ping for (in centimeters). Maximum sensor distance is rated at 400-500cm.

NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); // NewPing setup of pins and maximum distance.

void setup() {
  Serial.begin(115200); // Open serial monitor at 115200 baud to see ping results.
}

void loop() {
  delay(50);                      // Wait 50ms between pings (about 20 pings/sec). 29ms should be the shortest delay between pings.
  unsigned int uS = sonar.ping(); // Send ping, get ping time in microseconds (uS).
  Serial.print("Ping: ");
  Serial.print(uS / US_ROUNDTRIP_CM); // Convert ping time to distance in cm and print result (0 = outside set distance range)
  Serial.println("cm");
}