   }
 
   // Wenn die Zeit (worktime) kleiner als die Vergangene Zeit ist, Sende die Messdaten.
-  if ((unsigned long)(currmillis - task1) >= stime || (currmillis == 1000)) {
-    //Serial.println(F("check DHT22"));
-    //TransmitData(get_temp(), get_hum());
+  if ((unsigned long)(currmillis - task1) >= stime || (currmillis == 10000)) {
     act(1);
     root["temperature"] = get_temp();
     root["Humidity"] = get_hum();

String IP="";
int i,k,x=0;

String SERVER="10.20.50.74"; // DNS or IP to send measurement data to Server
String TOKEN="5245ADFAFD5784567ADFA324"; // AUTH Token
//unsigned int PORT=9600; // Port for Server
String URI="/"; // URL Path after DNS or IP

//Servo Lib
#include <Servo.h> 
int servo_pin = 2; // Declare the Servo pin
int servo_power = 28; // servo power
Servo servo1; // Create a servo object
int pos_open = 138; // open position in degrees
int pos_close = 85; // close position in degrees

//DHT11 Lib
int dhtPin = 24;
