    In diesen Fällen kann die Zigarre anfangen zu faulen, es können sich Schimmelpilze und andere Pilzarten bilden.
 
 */
+#include <ArduinoJson.h>
 // ID fuer den Sender
-byte ID = 10;
+byte ID = 234576;
 //VirtualWire lib
-#include <VirtualWire.h>
-int txPin = 3; //ueber Pin 3 die Daten senden
-//digital Output
-int out1 = 12;
+//#include <VirtualWire.h>
+//int txPin = 3; //ueber Pin 3 die Daten senden
+
+
+int out1 = 12; //obsolet
+
+int fan_pin=7;
+int led_act=8;
+int led_pwr=12;
+
+
+// ESP8266 WIFI
+#include<SoftwareSerial.h>
+SoftwareSerial wifi(2,3); //RX, TX
+boolean NO_IP=false;
+String IP="";
+int i=0,k=0;
+int x=0;
+
+//Servo Lib
+#include <Servo.h> 
+// Declare the Servo pin 
+int servo_pin = 5;
+// Create a servo object 
+Servo servo1;
 
 //DHT lib
 int dhtPin = 4;

  vw_send((uint8_t *)&wData, sizeof(wData));
  vw_wait_tx();
}


  return dht.getHumidity();
}

void TransmitData(String jsonstring){
  /*
   * Send JSON Data
   */
   int ii=0;
   while(1){
    unsigned int l=jsonstring.length();
    Serial.print("AT+CIPSEND=0,");
    wifi.print("AT+CIPSEND=0,");
    Serial.println(l+2);
    wifi.println(l+2);
    delay(100);
    Serial.println(jsonstring);
    wifi.println(jsonstring);
    while(wifi.available()){
      if(wifi.find("OK")){
        ii=11;
        break;
      }
    }
    if(ii==11)
    break;
    delay(100);
   }
}

/*
void TransmitData(float temp, float hum) {
  /*
   * Erstelle eine Datenstruktur und
