 }
  *
  */
-#include <Arduino.h>
 #include "Sodaq_UBlox_GPS.h"
 #include <rn2xx3.h>
 
-//create an instance of the rn2xx3 library,
-//giving Serial1 as stream to use for communication with the radio
+// Create an instance of the rn2xx3 library,
+// Giving Serial1 as stream to use for communication with the radio
 rn2xx3 myLora(Serial1);
 
 String toLog;

    SerialUSB.begin(57600);
    Serial1.begin(57600);

    // make sure usb serial connection is available,
    // or after 10s go on anyway for 'headless' use of the node.
    while ((!SerialUSB) && (millis() < 10000));


{
  SerialUSB.println("Waiting for GPS fix");

  // Turn off GREEN and turn on RED led to indicate GPS usage
  digitalWrite(LED_GREEN, HIGH);
  digitalWrite(LED_RED, LOW);

  // Scan until we have a succesful GPS fix
  while(!sodaq_gps.scan(true))
  {
    SerialUSB.println("No GPS fix, doing another scan");
  }

  digitalWrite(LED_RED, HIGH);

  LatitudeBinary = ((sodaq_gps.getLat() + 90) / 180) * 16777215;
  LongitudeBinary = ((sodaq_gps.getLon() + 180) / 360) * 16777215;
