 float accelG[3];  // Stores the real accel value in g's
 
 bool electrified = false;
-int electrifyStart;
+unsigned long electrifyStart;
 
 
 void setup()

  if ((source & 0x40)==0x40)  // If AxZ bit is set
  {
    if ((source & 0x08)==0x08)  // If DPE (double puls) bit is set
      Serial.print("    Double Tap (2) on Z");
    else
    {
      Serial.print("Single (1) tap on Z");
      electrify();
    }
    if ((source & 0x04)==0x04)  // If PoIZ is set

  if ((source & 0x20)==0x20)  // If AxY bit is set
  {
    if ((source & 0x08)==0x08)  // If DPE (double puls) bit is set
      Serial.println("    Double Tap (2) on Y");
    else
    {
      Serial.println("Single (1) tap on Y");
      electrify();
    }

