 
   pinMode(AIO_WIND_DIRECTION, INPUT);
 
+  interrupts();
+
   xbeeSerial.begin(9600);
   Serial.begin(9600);
 }


  // sleep radio
  digitalWrite(DIO_XBEE_SLEEP, HIGH);
  delay(UPDATE_RATE_MS - (millis() - deltaStart)); // wait the rest of the rate if we need to
}

// Interrupts //

const byte BOUNCE_DELAY_MS = 10;
const int UPDATE_RATE_MS = 1000;

volatile float rainInches = 0, windSpeed = 0;
volatile int windDirection = 0;

//

