 } stat = { 0, 0, 0, 0, 0, 0, 0, 0};
 
 
+//Setting up for the very first time and once only
 void setup() {
   Serial.begin(9600);
   lcd.begin(20, 4);

    if (tflag[1] == 3)
    {
      stemperature = 2;
      funShowResult();
    }
  }
  else if ((T1 >= 20) && (T1 < 30))

   temperature and humidity min and max limit checking
   by Dr. Aung Win Htut
*/
#include<SoftwareSerial.h>  //for bluetooth
#include <dht.h> //for DHT22


#include <LiquidCrystal_I2C.h> 
//LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); //16*4
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); //20*4



//pin configuration
#define DHT22_PIN 4
#define ldr A0
#define MQ2 A1
