     }
 }
 
-void update_display() {
-    
-    char output[33] ;
+void update_display(char* output) {
+    
+    // char output[33] ;
     output[0] = 'T' ;
     // DHT22 pin needs 2 seconds
     micro_delay(250);

}

#if !defined(AWS_NO_SERIAL)
void serial_output() {
    int hh = hour();
    int mm = minute();
    int ss = second();

#endif

#if !defined(AWS_NO_LCD)
void lcd_output(char* buffer) {
  
    pinMode(lcd_pin, OUTPUT);
    digitalWrite(lcd_pin, HIGH);
