   for( loadTime = 7 ; loadTime < 10; ++loadTime)
     loadScreen(loadTime); 
 
-  if(bufferr[0]!=ESP8266_SSID[0] || bufferr[1]!=ESP8266_SSID[1] || bufferr[2]!=ESP8266_SSID[2]){          // test if the ESP is already connected to previous WiFi 
+  if(!(bufferr[0]!=ESP8266_SSID[0] || bufferr[1]!=ESP8266_SSID[1] || bufferr[2]!=ESP8266_SSID[2])){          // test if the ESP is already connected to previous WiFi 
   wifiSEND.sendCommand(F("AT+RST"), bufferr, sizeof(bufferr));                 // reset WiFi module 
   delay(2000); 
   wifiSEND.setupAsWifiStation(ESP8266_SSID, ESP8266_PASS, &Serial);            // connect to the WiFi with the set ssid and password 

        setColor(40,0,0);
        delay(100); 
        setColor(0,0,0); 
        delay(900);

        if(digitalRead(ALARMbutton)){
          alarm++; alarm=alarm%2; 
          if(DEBUG) Serial.print("Alarm is "); if(DEBUG) Serial.println(alarm);  
          break; 
        }
      }
      if(alarm){
        lcd.setCursor(0,0); 

    lcd.setCursor(0,0); 
    lcd.print("  Humid="); lcd.print((int)dht.readHumidity()); lcd.print("%            ");  
    lcd.setCursor(0,1); 
    lcd.print(" Warmth="); lcd.print((int)dht.readTemperature()); lcd.write(byte(8)); lcd.println("C            ");
  }
  else{
    lcd.setCursor(0,0); 
