   {
     heading = 360 + heading; 
   }
+ 
   Serial.print("{");
   
   Serial.print("\"current\": ");  

  float firstVolt = (firstVal/1024.0)*5;
  float secondVolt = (secondVal/1024.0)*5;
  double current = (firstVolt - secondVolt)/smallR;
  double power = current*current*(bigR+smallR+20);
 
  bmp.getEvent(&eventP);

  Serial.print(heading);
  Serial.print("]");
  Serial.print(", ");
  
  Serial.print("\"accelerometer\": ");
  Serial.print("[");
  Serial.print(eventA.acceleration.x);
