 
 void serial_output() {
     Serial.print("Yuktix H ");
-    if(temp1 > STEEL_MELTING_POINT) { 
+    if(dht22_temp > STEEL_MELTING_POINT) { 
         Serial.println("ERR");
         Serial.print("T ");
         Serial.print("ERR");

    // bmp085_temp = bmp.readTemperature();

#if !defined(AWS_NO_SERIAL)
        serial_output();
#endif

#if !defined(AWS_NO_LCD)
    lcd_output();
#endif

    // 10s delay
    // DHT22 pins need 2 seconds
    for(int i = 0 ; i < 1000 ; i++) {
        //10 ms
        delayMicroseconds(10000);
    }
}


void isr_pin2() {
    
    // @imp millis() donot advance inside an ISR
    irq_time = millis();    
    if((irq_time - last_irq_time) > 250) {
        rain_counter = rain_counter +1 ;
