         relayIsReady = HIGH;
       }
 
-      //runTimerDoLightOff();
+      runTimerDoLightOff();
 
       pirValue = digitalRead(pir);
       if ( oldpirValue != pirValue ) {

  } else {
    wifi_connect();
  }
  Alarm.delay(1);
}

void runTimerDoLightOff() {
  //if (( relaystatus == HIGH ) && ( hour() == 6 ) && ( minute() == 00 ) && ( second() < 5 )) {
  if (INFO_PRINT) {
    syslogPayload = "changing => relaystatus => runTimerLightOff";
    syslogPayload += relaystatus;
    sendUdpSyslog(syslogPayload);
  }
  relaystatus = LOW;

  /* need to inform mqtt, when light is off.
    String lightpayload = "{\"LIGHT\":";
    lightpayload += relaystatus;
    lightpayload += "}";

    sendmqttMsg(subtopic, lightpayload);
  */
  //}
}

void changelight() {

  ADC
*/
#include <TimeLib.h>
//#include <TimeAlarms.h>
#include <nRF24L01.h>
#include <RF24.h>
#include <OneWire.h>
