 
 #if !defined(AWS_NO_SERIAL)
 void serial_output() {
-    Serial.print("Yuktix H");
-    if(dht22_code !=  DHT_ERROR_NONE) { 
-        Serial.println("ERR");
-        Serial.print(dht22_code);
-        
-    } else {
-        Serial.println(humidity);
-        Serial.print(" T");
-        Serial.print(dht22_temp);
-    }
-
-    Serial.print(" P");
-    Serial.print(pressure);
-    Serial.print(" R");
-    Serial.print(rain_counter);
-
-}
+    int hh = hour();
+    int mm = minute();
+    int ss = second();
+
+    char ts[9] ;
+    sprintf(ts,"%d:%d:%d",hh,mm,ss);
+    // time
+    Serial.println(ts);
+    // data
+    Serial.println(buffer);
+
+}
+
 #endif
 
 #if !defined(AWS_NO_LCD)
 void lcd_output() {
   
-    int t1 ;
-    int p1 ;
-    int h1 ;
-    
     pinMode(lcd_pin, OUTPUT);
     digitalWrite(lcd_pin, HIGH);
     lcd.begin(16,2);       
     lcd.clear();
     // line1
     lcd.setCursor(0,0);
-    lcd.print("YUKTIX H");
-    if(dht22_code !=  DHT_ERROR_NONE) { 
-        lcd.print("ERR");
-        lcd.setCursor(0,1);
-        lcd.print(dht22_code);
-        
-    } else {
-        h1 = round(humidity);
-        lcd.print(h1);
-        lcd.print("%");
-        lcd.setCursor(0,1);
-        lcd.print("T");
-        t1 = round(dht22_temp);
-        lcd.print(t1);
-    }
-
-    lcd.print(" P");
-    p1 = round(pressure/10.0);
-    lcd.print(p1);
-    lcd.print(" R");
-    lcd.print(rain_counter);
-}
+    for(int i = 0 ; i < 15; i++){ lcd.print(buffer[i]); }
+    lcd.setCursor(0,1);
+    for(int i = 16 ; i < 32; i++){ lcd.print(buffer[i]); }
+}
+
+void lcd_one_liner(char* str) {
+    pinMode(lcd_pin, OUTPUT);
+    digitalWrite(lcd_pin, HIGH);
+    lcd.begin(16,2);       
+    lcd.clear();
+    // line1
+    lcd.setCursor(0,0);
+    lcd.print(str);
+
+}
+
 #endif
 
 void loop() {

    if(dht22_code == DHT_ERROR_NONE) {
        dht22_temp = myDHT22.getTemperatureC();
        humidity = myDHT22.getHumidity();
        
    } else {
        // absurd value
        dht22_temp = 9999.0 ;
    }

    pressure = bmp.readPressure();

#if !defined(AWS_NO_SERIAL)
    serial_output();

    // alarm wont work w/o alarm delay
    Alarm.delay(1000);
}

