 //For Arduino Uno
 //static const int RXPin = 5, TXPin = 4; //GPS is attached to pin 4(TX from GPS) and pin 5(RX into GPS)
 //For Arduino Mega
-static const int RXPin = 6, TXPin = 7; //GPS is attached to pin 7(TX from GPS) and pin 6(RX into GPS)
+static const int RXPin = 50, TXPin = 51; //GPS is attached to pin 7(TX from GPS) and pin 6(RX into GPS)
 SoftwareSerial ss(RXPin, TXPin); 
 
 MPL3115A2 myPressure; //Create an instance of the pressure sensor


    rainlast = raintime; // set up for next event
  }
  
  //Rain or not (1 or 0)
  if(rainin >0)
  {

  //Keep track of which minute it is
  if(millis() - lastSecond >= 1000)
  {
    digitalWrite(STAT2, HIGH); //Blink stat LED

    lastSecond += 1000;

    //Take a speed and direction reading every second for 2 minute average
