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


void update_display() {
    
    // DHT22 pin needs 2 seconds
    micro_delay(250);
    dht22_code = myDHT22.readData();


#if !defined(AWS_NO_SERIAL)
void serial_output() {
    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() {
  
    pinMode(lcd_pin, OUTPUT);
    digitalWrite(lcd_pin, HIGH);
    lcd.begin(16,2);       
    lcd.clear();
    // line1
    lcd.setCursor(0,0);
    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() {
