 #define LOOP_DELAY 100
 
 #define LED_PIN D3
-#define LED_ON_TIME_SECONDS 2
+#define LED_BLINK_TIME_SECONDS 2
 
 #define MAX_MESSAGE_SIZE 100
 

OneWire ds(DS18B20_PIN);
DallasTemperature tempSensors(&ds);


void callback(char* topic, uint8_t* message, unsigned int length) {
  if (strncmp((const char*)message,"on", strlen("on")) == 0) {
    digitalWrite(LED_PIN, HIGH);
  } else {
    digitalWrite(LED_PIN, LOW);
  }
};


    snprintf(lightMessage, MAX_MESSAGE_SIZE, "0, 0 - light: %d", lightValue);
    client.publish(LIGHT_TOPIC, lightMessage);

    toggleLED();
    counter = 0;
  } else if (counter == (LED_BLINK_TIME_SECONDS * (MILLIS_IN_SECOND/LOOP_DELAY))) {
    toggleLED();
  }
}
