   myPressure.setOversampleRate(7); // Set Oversample to the recommended 128
   myPressure.enableEventFlags(); // Enable all three pressure and temp event flags 
 
-    //Configure the humidity sensor
+  //Configure the humidity sensor
   myHumidity.begin();
-
+  
+  // attach external interrupt pins to IRQ functions
+  attachInterrupt(0, rainIRQ, FALLING);
+  attachInterrupt(1, wspeedIRQ, FALLING);
+
+  // turn on interrupts
+  interrupts();
+  
   smartdelay(60000); //Wait 60 seconds, and gather GPS data
   minutes = gps.time.minute();
   //minutes_5m = gps.time.minute();
   minutes_10m = gps.time.minute();
   seconds = gps.time.second();
   lastSecond = millis();
-  // attach external interrupt pins to IRQ functions
-  attachInterrupt(0, rainIRQ, FALLING);
-  attachInterrupt(1, wspeedIRQ, FALLING);
-
-  // turn on interrupts
-  interrupts();
-
 }
 
 void loop()

  lcd.print("P:");
  lcd.print(myPressure.readPressure()/100.0);
  lcd.print(" hPa");
  delay(4000);
  
  //Not enough dynamic memory in UNO
  //lcd.clear();

  lcd.print("T:");
  lcd.print(myPressure.readTemp());
  lcd.print(" C");
  delay(5000);
  
  //Not enough dynamic memory in UNO
  //lcd.clear();
