     blink(10);
     digitalWrite(LEDPIN, LOW);
     digitalWrite(XBEESLEEPPIN, LOW);  //Wake UP XBEE
-
     sleep(60000); 
     return;
   }

  sleep(60000);
}


int pingCoordinator(void){
    

  Serial.print(sample); 
  Serial.print(", "); 
  
  Serial.print("'Temp':"); printValue(dht.getTemperature());
  Serial.print("'RH':"); printValue(dht.getHumidity());
  
  sensors_event_t event;
  bmp.getEvent(&event); 
  Serial.print("'AtmoPressure':"); printValue(event.pressure);
  
  uint16_t broadband = 0;
  uint16_t infrared = 0;
 
  tsl.getEvent(&event); 
  long lx = event.light;
  tsl.getLuminosity (&broadband, &infrared);
  if (lx == 0 && broadband > 65000){ //Sensor appears to be in direct sunlight outside it's resolution limits. Set lx value to max to simplify downstream logic
      lx = 0xFFFF;
  }
  Serial.print("'AmbientLight':"); printValue(lx);
  Serial.print("'BroadbandLight':"); printValue(broadband);
  Serial.print("'Infrared':"); printValue(infrared);

  Serial.println("}}");
  
  delay(2000);   //Delay at the end to allow xbee to flush its send buffer 
