   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 

      
      lcd.setCursor(0,0); lcd.print("House will be         "); 
      lcd.setCursor(0,1); lcd.print(" armed in         "); 
      delay(1000); 
      
      for( int i = 19 ; i>=0 ; --i ){
        lcd.setCursor(12,1);

  


  if(digitalRead(RELAYbutton)){                                                                // event if light bulb button(1) is pushed 
    lightBulb++; lightBulb=lightBulb%2; 
    if(DEBUG) Serial.print("The light bulb is "); if(DEBUG) Serial.println(lightBulb); 
