 int ir_current_rssi = 0;
 char current_id[03] = "00";
 bool is_increase_available = false;
+bool is_connected = false;
 char message[20];
 unsigned long start_time;
 boolean isWaitingReply;

}

void loop() {
  if(ir_bcast_mode){
    // constantly sending out ir broadcast as visual cue
    Serial.println(ir_time);
    if(millis() - ir_time > ir_cycle) {

      }
    }

    if (XBee.available()) {
      delay(10);
      while (XBee.available()) {
