     lcd.print("Water off, OK   ");
     //Serial.println("Water off, all OK");
   }
+}
+
+void sendData(String value)
+{
+  static long last_transmit = millis();
+  if ((millis() - last_transmit) >= 1000)
+   { 
+    com.print("set-property " + value + "\r\n");
+    last_transmit = millis();
+   }
 }
 
 void checkLight()

  lcd.begin();
  lcd.backlight();
  
  while (!Serial) ; // wait until Arduino Serial Monitor opens
  setSyncProvider(RTC.get);   // the function to get the time from the RTC
  

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(){
