       {
         buffer[start++] = '0';
       } 
+
       buffer[start++] = '.';
     }
   }

float Gx,Gy,Gz;//Unit ��/s
float loudness;

void initialiseAccelerationAndGyro() {
   // Initializing IMU sensor
   accelgyro.initialize();

    return start+index;
}

void bleTransmitSensorData() 
{
  char buffer [100];
  int start = 0;

  char text[] = { '#', 'M', 'E', 'A', 'S', 'U', 'R', 'E', 'M', 'E', 'N', 'T', '|' };

  start = copyOver(text, buffer, 13, start);
  start = dToBuffer(Ax, buffer, start);
  buffer[start++] = '|';
  start = dToBuffer(Ay, buffer, start);
  buffer[start++] = '|';
  start = dToBuffer(Az, buffer, start);
  buffer[start++] = '|';
  start = dToBuffer(Gx, buffer, start);
  buffer[start++] = '|';
  start = dToBuffer(Gy, buffer, start);
  buffer[start++] = '|';
  start = dToBuffer(Gz, buffer, start);
  buffer[start++] = '|';
  start = dToBuffer(loudness, buffer, start);
  buffer[start++] = '#';
  buffer[start] = '\0';

  Serial1.write(buffer);
  Serial1.flush();
}

void setup() {
