 int scaPin = 0;
 */
 
+int dhtPin = 4;
 //DHT11 und 22 lib
 #include <DHT.h>
 #include <DHT_U.h>

DHT_Unified dht(dhtPin, DHTTYPE);

//Pausen zwischen den Messungen in Millisekunden
unsigned long stime = 10000;
unsigned long mtime = 10000;

boolean fanOn;

void setup() {
  //Serial.begin(115200);
  // VirtualWire Initialise the IO and ISR
  vw_set_ptt_inverted(false); // Required for RF Link module
  vw_set_tx_pin(txPin);
  vw_setup(1200); //Bits pro Sekunde


float get_temp() {
  // Read temperature as Celsius (the default)
  
  sensors_event_t event;
  dht.temperature().getEvent(&event);
  return event.temperature;
  
  //return dht.readTemperature();
}

float get_hum() {
  // Read humidity
  
  sensors_event_t event;
  dht.humidity().getEvent(&event);
  return event.relative_humidity;
  
  //return dht.readHumidity();
}

void TransmitData(float temp, float hum) {
