   }
   else
   {
-    Serial.print("'NaN', ");
+    Serial.print("null, ");
   }
 }
 


void loop() {
  digitalWrite(XBEESLEEPPIN, LOW);  //Wake UP XBEE
  delay(2000);

  blink(25, 50);
  digitalWrite(LEDPIN, LOW);  

  }
}

int pingDestination(void){
    
    for(int i = 0; i<5; i++){
      blink(i+1);
      while(getCh() != NULL) ;       //Drain any pending chars on the serial.
      Serial.println("@PING");
      int c=0;
      while(Serial.available()<2 && c++<10){
          delay(200);
          blink(2, 50);
      }
      if (getCh()=='O' && getCh()=='K'){
