             }
             /* Publishing temperature to MQTT Broker if enabled */
             Mqtt.publish("temperature", temperature);
+            Led.off();
           }
         }
 

        /* Checking if there was received HTTP API Command */
        if (Device.configuration.httpAPI) {
          if (WebServer.httpAPIlistener()) {
            processHTTPAPIRequest(WebServer.getHTTPCommand());
          }
        }



          /* Relay turn off event launched */
          if (Relay.autoTurnOff()) {
            Led.on();
            Mqtt.publish(Relay.getMQTTTopic(), "state", "off");
            Led.off();
          }

          /* One of the switches has been shortly pressed */
          if (Switch.isPressed() || ExternalSwitch.isPressed()) {
            Led.on();
            Relay.toggle();
            MQTTPublishRelayState(); // MQTT Listener library
            Led.off();
          }
        }

