 float f ;
 
 //
-volatile int pirValue = LOW;
-volatile int pirSent  = LOW;
+int pirValue ;
+int pirSent  ;
+int oldpirValue ;
 
 /*
 volatile int relaystatus    = LOW;

#define BETWEEN_RELAY_ACTIVE 5000

// DS18B20
#define ONE_WIRE_BUS 12
#define TEMPERATURE_PRECISION 12

OneWire oneWire(ONE_WIRE_BUS);

  runTimerDoLightOff();

  pirValue = digitalRead(pir);
  if ( oldpirValue != pirValue ) {
    pirSent = HIGH;
    oldpirValue = pirValue;
  }

  payload = "{\"Humidity\":";
  payload += h;
