 unsigned long Well_IR_Timer[nWells];    // timer for how long IR has been on.
 unsigned long PumpTimeRef[nWells];      // time ref for pump on
 unsigned long PumpTimer[nWells];        // timer for how long pump has been on
+
+char RR[] = "RR";
+char DD[] = "DD";
+char AW[] = "AW";
+char DW[] = "DW";
 
 // Setup
 void setup() {

}

// send event code 
void sendEventCode(char* code){
   char str[10];
   sprintf(str,"<EC_%s", code);
   Serial.println(str);
   Serial.println(">");
}

// Detection state

  Well_Active_TimeRef[well] = 15000UL;
  Well_Active_Timer[well] = 0;
  Well_LED_OFF(well);
  sendEventCode(DW,well+1);
}

void  Well_LED_ON(int well) {
