 
 void sendData(String value)
 {
-  static long last_transmit = millis();
-  if ((millis() - last_transmit) >= 1000)
+  com.print("set-property " + value + "\r\n");
+  /*static long last_transmit = millis();
+  if ((millis() - last_transmit) >= 100)
    { 
     com.print("set-property " + value + "\r\n");
     last_transmit = millis();
-   }
+   }*/
 }
 
 void checkLight()

  if (light_time_off[0] < light_time_on[0])
    {
      if (hour() >= light_time_on[0])
      {
        LightOn();
      }
      else
        LightOff();
    }
  else
    {
      if (hour() >= light_time_on[0] <= hour() < light_time_off[0])
      {
        LightOn();
      }
      else
        LightOff();
    }
}
void digitalClockDisplay()
{
  // digital clock display of the time

  CheckWaterOn();
  CheckButtons();
  digitalClockDisplay();
  Alarm.delay(0); // o == check all the time
}

// Light On
void LightOn(){
  //Serial.println("Light on, Good morning!");
  Nexa.Device_On(0);
  sendData("id=light value=on");
}

// Light timer
void LightOff(){
  //Serial.println("Light Off, Good nights!");
  Nexa.Device_Off(0);
  sendData("id=light value=off");
}

void ForcedTimer(){
  //Serial.println("ForcedTimer: - turn water on");    
  WaterOn();
}

