     // turn off antenna updates
     GPS.sendCommand(PGCMD_NOANTENNA);
     delay(250);
+
+    initAccel();
 }
 
 

    pinMode(D7, OUTPUT);
    digitalWrite(D7, LOW);

    GPS.begin(9600);
    mySerial.begin(9600);
    Serial.begin(9600);

    lastMotion = 0;
    lastPublish = 0;

    // electron asset tracker shield needs this to enable the power to the gps module.
    pinMode(D6, OUTPUT);
    digitalWrite(D6, LOW);
