       DEBUG_PRINT(atoi(p.id));
       DEBUG_PRINT("  ID2:");
       DEBUG_PRINTLN(atoi(deviceId));
-	
+      
       // packet not error
       if (p.type[0] != 'e') {
 	start_time = millis();

  randomSeed(analogRead(5));

  readXBeeDeviceId();
  
  toggle_time = millis();
  signal_time = millis();


      
      if (atoi(p.id) == atoi(deviceId) && p.type[0] == 'c') {
      	// have been confirmed
        DEBUG_PRINTLN("[CONNECTED] entering state");
        state = CONNECTED;
      }
      // verifying this selection
      else if (atoi(p.id) == atoi(deviceId) && p.type[0] == 'v') {
        // have been confirmed
        DEBUG_PRINTLN("[WAIT] being verified");

        // may flash the light to indicate this
        ledStateInterval = 100;
        state = PENDING;
      }
      // verifying this selection
      else if (atoi(p.id) != atoi(deviceId) && p.type[0] == 'v') {
        // have been confirmed
        DEBUG_PRINTLN("[WAIT] verifying others");
	ledStateInterval = 600;
        state = PENDING;
      }
      // verifying this selection
      else if (atoi(p.id) != atoi(deviceId) && p.type[0] == 'c') {
        // have been confirmed
        DEBUG_PRINTLN("[IDLE] connected with others");
        state = IDLE;
      }
      else {
        DEBUG_PRINTLN("[IDLE] id not equal");
        state = IDLE;
        irrecv.resume();
      }
    }
