   delay(randomDelay);
   // send back acknowledge packet
   sendXBeePacketFromRaw(&XBee, deviceId, "A", " ID", "XXX");
-  delay(2000);
+  
 }
 
 void readXBeeDeviceId() {


  if(irrecv.decode(&results)) {
    delay(5);
    DEBUG_TAGGING("IR: ", results.value);
    if(results.value == 0xFFFF){
      digitalWrite(ledSignalPin, 1);
      signal_time = millis();

        //the rest => turn off led
        //" ON" means selected manually by user
        //"AON" means only 1 client responded so auto on
        // if(atoi(p.id) == atoi(deviceId)) {
        if(strcmp(p.id, deviceId) == 0) {
          digitalWrite(ledStatePin, HIGH);  
          //turn off target led if selected correctly
          digitalWrite(ledTargetPin, LOW);  
        } else {
          digitalWrite(ledStatePin, LOW);  
