     int mm = minute();
     int ss = second();
 	int yyyy = year();
-	int mm = month();
+	int mt = month();
 	int dd = day();
 
 	// 18 char excel timestamp
-    sprintf(ts,"%02d-%02d-%02d %02d:%02d:%02d",yyyy,mm,dd,hh,mm,ss);
+    sprintf(ts,"%02d-%02d-%02d %02d:%02d:%02d",yyyy,mt,dd,hh,mm,ss);
 	ts[17] = '\0' ;	
 
 	// sensors
     int dht11_code = DHT11.read(DHT11_PIN);
     micro_delay(200);
-	int ldr = analogRead(LDR_Pin); 
+	int ldr = analogRead(LDR_PIN); 
 	
     if(dht11_code != 0 ) {
         // error


void lcd_print(char* line1, char* line2) {

    pinMode(lcd_pin, OUTPUT);
    digitalWrite(lcd_pin, HIGH);
    lcd.begin(16,2);       
    lcd.clear();
    // line1

    lcd.print(line2); 
}

void log_data() {

    char ts[18] ;
	char data[12] ;
