   if ((unsigned long)(currmillis - task1) >= stime || (currmillis == 1000)) {
     //Serial.println(F("check DHT22"));
     //TransmitData(get_temp(), get_hum());
-    act(1);
+    //act(1);
     root["temperature"] = get_temp();
     root["Humidity"] = get_hum();
     TransmitData();
     task1 = millis();
     act(0);
+    Serial.println("send data");
   }
 
   // Sende Messdaten wenn die Befeuchtung aktiv ist alle 60 Sekunden

void chk_wifi_conn(){
  if(!WIFI_CONN){
    // get ip address
    get_ip();
    delay(2000);
    // check ip and NO_IP to True
    check_ip(5000);
  } else {
    // do nothing
  }

  if(!NO_IP && !WIFI_CONN){

  pinMode(led_pwr, OUTPUT);
  pinMode(led_act, OUTPUT);

  digitalWrite(led_pwr, LOW);
  digitalWrite(led_act, LOW);
  
  //wifi_init();
