 {
   
   changelight();
+  runTimerDoLightOff();
   
   pirValue = digitalRead(pir);
   

  client.loop();
}

void changelight() 
{ 
  if ( relaystatus != oldrelaystatus ) 


WiFiClient wifiClient;
PubSubClient client(wifiClient, server);
WiFiUDP udp;


void setup() 
{
