 }
 
 // send event code 
-void sendEventCode(char* code){
+void sendEventCode(char* code, int num){
    char str[10];
-   sprintf(str,"<EC_%s", code);
+   sprintf(str,"<EC_%s%d", code, num);
    Serial.println(str);
-   Serial.println(">");
+   Serial.println(">\n");
 }
 
 // Detection state

  Well_Active_TimeRef[well] = millis();
  Well_Active_Timer[well] = 0;
  Well_LED_ON(well);
  char eventCode[3];
  sprintf(eventCode, "AW%d",well+1);
  sendEventCode(eventCode);
}

void DeActivateWell(int well) {

        Serial.print("<Detection on Well # ");
        Serial.println(well + 1);
        Serial.print(">\n");
        sendEventCode(DD,well+1);
      }
    }
  }
