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

          SensorDS18B20.listener();

          if (SensorDS18B20.isReady()) {
            temperature = SensorDS18B20.getLatest();
            /* Thermostat listener */
            Relay.Thermostat.listener(temperature);

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

