    Serial.println(accelgyro.testConnection() ? "IMU connection successful":"IMU connection failure");
 }
 
+/*
+ * Initialise the loudness sensor
+ */
 void initialiseLoudnessSensor()
 {
    Wire.beginTransmission(ADDR_ADC121);        // transmit to device

}

void loop() {
  while (true) {
    if (Serial1.available())
    {
      measurementMode = Serial1.read();

   Gz=gz/131.00;
}

/*
 * Update the loudness value
 */
void updateLoudness()
{
    int getData;
