 String ssid="Free 2017";    // Wifi network SSID
 String password ="wifi3210";  // Wifi network password
 
-boolean DEBUG=true;
-
+boolean DEBUG=true; //sets the serial monitor to provide errors if it encounter any during the execution
+// Initializing colors of the LCD display
 const int colorR = 255;
 const int colorG = 0;
 const int colorB = 0;
 
 //======================================================================== showResponce
+
+// function checks if there is any serial read on the serial monitor then prints it on the LCD screen
 void showResponse(int waitTime){
     long t=millis();
     char c;

  Serial1.println(cmd);
  if (DEBUG) Serial.println(cmd);
  if(Serial1.find("Error")){
    if (DEBUG) Serial.println("AT+CIPSTART error");
    return false;
  }
  

           thingSpeakWrite(t,h);                                      // Write values to thingspeak
      }
  
    // set the cursor to column 0, line 1
    // (note: line 1 is the second row, since counting begins with 0):
    lcd.setCursor(0, 1);
    
   // Print a temperature and humidity to the LCD.
    //lcd.print("Temperature is", t "Humidity is", h );
    lcd.print("T="+String(t)+ "\n");
    lcd.print("H="+String(h));

   
 delay(20000);     // thingspeak needs 15 sec delay between updates,     
}


