   lcd->begin(16, 2);
   
   lcd->setCursor(0, 0);
-  lcd->print("Thermostat");
+  lcd->print(F("Thermostat"));
   lcd->setCursor(0, 1);
   lcd->print(VERSION);
   delay(2000);
+  lcd->clear();
   
   if (!cfg.read()){
-    dpln("Failed to load configuration");
+    dpln(F("Failed to load configuration"));
     cfg.setDefaults();
     cfg.write();
   }

  // OPERATE RELAY1 ------------------------------
  if (cfg.data.cooling) {                       // if operation is COOLING
    if (relay1->isOn()) {                       // if cooling is ON
      if (temp1 < cfg.data.temp-cfg.data.eps)   // then keep it on until temperature is lower than SET minus EPS
        relay1->off();                          // then turn it OFF
        
    } else {                                        // if cooling is OFF
      if (temp1 > cfg.data.temp+cfg.data.eps)   // and current temperature is higer than SET plus EPS
        relay1->on();                           // then turn cooling ON
    }    
  }  else {                                     // if operation is HEATING
    if (relay1->isOn()) {                         // if heating is ON
      if (temp1 > cfg.data.temp+cfg.data.eps)   // then keep it ON until temperature is higher than SET plus EPS
        relay1->off();                          // then turn it OFF
        
    } else {                                        // if heating is OFF
      if (temp1 < cfg.data.temp-cfg.data.eps)   // and current temperature is lower than SET minus EPS

    blinkPhase = !blinkPhase;
  }

  // display operation mode: heating/cooling
  lcd->setCursor(0, 0);
  if (mode == MODE_CONFIG_OP && !blinkPhase)
    lcd->print("       : ");
  else  
    if (cfg.data.cooling)
      lcd->print("Cooling: ");
    else
      lcd->print("Heating: ");

  // display configured temperature
  lcd->setCursor(9, 0);
  if (mode == MODE_CONFIG_TEMP && !blinkPhase)
    lcd->print("     ");
  else
    lcd->print(cfg.data.temp);

  // display degrees C
  lcd->setCursor(14, 0);
  lcd->print(char(223));
  lcd->print("C");

  // display ccurrent temperature
  lcd->setCursor(3, 1);
  lcd->print("Temp: ");
  lcd->print(temp1);
