 
 bool currentlyOn = true;
 
+bool isLcdBacklightOn = false;
+
 void setup(){
   Serial.begin(9600);
   


#define SLEEP_INTERVAL 250 //0.25s
#define SLEEP_LONG_INTERVAL 45000 //45s

#define OFF_HOUR 01
#define OFF_MIN 00

      prevUpdateTimeSecond = second;
      String dateString = generateDateTimeString(now.year(), now.month(), now.day(), now.hour(), now.minute(), now.second());
      printThisOnLCDLine(dateString, 0);
      
      int lightValue = analogRead(LDR_PIN);
      Serial.println("LDR");
      Serial.println(lightValue);
      
      if(lightValue < LIGHT_THRESHOLD){
        //Dark, turn on backlight
        if(!isLcdBacklightOn){
          lcd.backlight();
          isLcdBacklightOn = true;
        }
      } else {
        //Bright, turn off backlight
        if(isLcdBacklightOn){
          lcd.noBacklight();
          isLcdBacklightOn = false;
        }
        
      }
    }


