     xbee.send(zbTx);
 
     /*************ERROR CHECKS**************/
-    Serial.println("Packet sent");
+    Serial.println(F("Packet sent"));
 
     // flash TX indicator
     //flashLed(statusLed, 1, 100);

  return (temp);
}

void set_next_alarm(void) {
  struct ts t;
  unsigned char wakeup_min;

  DS3234_get(cs, &t);

  //calculate the minute when the next alarm will be triggered
  wakeup_min = (t.min / sleep_period + 1) * sleep_period;

  if (wakeup_min > 59) {
    wakeup_min -= 60;
  }

  Serial.println(wakeup_min);

  // flags define what calendar component to be checked against the current time in order
  // to trigger the alarm
  // A2M2 (minutes) (0 to enable, 1 to disable)
  // A2M3 (hour)    (0 to enable, 1 to disable)
  // A2M4 (day)     (0 to enable, 1 to disable)
  // DY/DT          (dayofweek == 1/dayofmonth == 0)
  uint8_t flags[4] = { 0, 1, 1, 1 };

  // set Alarm2. only the minute is set since we ignore the hour and day component
  DS3234_set_a2(cs, wakeup_min, 0, 0, flags);

  // activate Alarm2
  DS3234_set_creg(cs, DS3234_INTCN | DS3234_A2IE);
}

void regularInterval (int interval) {
  int sec1, min1, hr1, min2;

  Serial.println(ReadTimeDate(&sec1, &min1, &hr1)); // an example string

  min2 = min1;
  while (min2 % interval != 0) {
    ReadTimeDate(&sec1, &min1, &hr1); // an example string
    min2 = min1;
    delay(1000);
  }
  set_next_alarm();
}

void setupTime() {
  int MM = 0, DD = 0, YY = 0, hh = 0, mm = 0, ss = 0;

  //dataXB="testing testy test^";
  
  //ask Zhey kung pwede ganito magpasa ng data
  //sprintf(dataXB,"testing testy test^",sizeof("testing testy test^"));
  //Serial.println(dataXB);
  //sendMessage();
 
  //sendMessage("testing xbee-power module code");
  //Serial.println("Sending this message: testing xbee-power module code");
  digitalWrite(trigForDue, HIGH);
  ReadTimeDate(&lastSec, &lastMin, &lastHr);
  customDue.print(command);
  customDue.print("/");
  customDue.println(timestamp);
  delay(5000); //di pa sure

  //timestart= millis();
/*
  while ( globalChecker == 0 ) {
    t.update();
    if (customDue.available()){
      customDue.readBytesUntil('\n',streamBuffer,250);
    }
    
    Serial.println(streamBuffer);

    //if (Serial.available()) {
      //Serial.readBytesUntil('\n', streamBuffer, 250);
    //}

    if (strstr(streamBuffer, "ARQWAIT")) {
      Serial.println(F("Timer Reset"));
