           TurnOFFPump(well);
           Serial.print("<Reward Delivered to Well # ");
           Serial.println(well + 1);
-          Serial.print(">");
-          char eventCode[3];
-          sprintf(eventCode, "RR%d",well+1);
-          sendEventCode(eventCode);
+          Serial.print(">\n");
+          sendEventCode(RR,well+1);
           DeActivateWell(well);
         }
       }

        Serial.print("<Detection on Well # ");
        Serial.println(well + 1);
        Serial.print(">\n");
        char eventCode[3];
        sprintf(eventCode, "DD%d",well+1);
        sendEventCode(eventCode);
      }
    }
  }

  Well_Active_TimeRef[well] = millis();
  Well_Active_Timer[well] = 0;
  Well_LED_ON(well);
  sendEventCode(AW,well+1);
}

void DeActivateWell(int well) {
