       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] == 'i') {
        // all sorts of instructions
        DEBUG_PRINTLN("[CONNECTED] command issued");
	if (strcmp(p.data, "0001") == 0) {
	  digitalWrite(controlledPin, HIGH);
	  Serial.print("p");
