     attachInterrupt(0,isr_pin2,RISING);
     last_irq_time = 0 ;
 
-    Alarm.timerRepeat(2,pat_watchdog);
-    Alarm.timerRepeat(60,update_display);
-    Alarm.alarmRepeat(8,30,0, send_bulletin);
-
 #if !defined(AWS_NO_SERIAL)
     Serial.begin(9600);
 #endif
+
+#if !defined(AWS_NO_GSM)
+    gsmSerial.println("AT+CMGF=1");
+    micro_delay(20);
+    gsmSerial.println("AT+CSMS=1");
+    micro_delay(20);
+    gsmSerial.println("AT+CNMI=2,2,0,0");
+    micro_delay(20);
+#endif
+
+    Alarm.alarmRepeat(8,30,0, send_bulletin);
 
 }
 

        rain_counter_reset = false ;
    }

    // @todo send SMS 

}

void pat_watchdog() {
    wdt_reset();
}

void calculate_rain() {

    p1 = round(pressure/10.0);
    lcd.print(p1);
    lcd.print(" R");
    lcd.print(total_rain);
}
#endif

void loop() {

    update_display();
    wdt_reset();
    // refresh in 30 seconds
    micro_delay(2750);
}
