       sensorValue[SENSOR_ID_SOUND] = get_sensor_data_sound();
       Serial.print("SensorValue(Sound):");
       Serial.println(sensorValue[SENSOR_ID_SOUND]);
-#endif    //if( APP_ID == 1)
-#if APP_ID == 2 
+#elif APP_ID == 2 
       Serial.print("[Performence TIME-COUNT]:");
       timecount=millis()-timecount;
       Serial.println(timecount);

    year    = (GPRMCstr[tmp + 4] - '0') * 10 + (GPRMCstr[tmp + 5] - '0');
    
    sprintf(buff_tmp, "\tDate(DD/MM/YY):%d/%d/%d", day, month, year);
    sprintf(datestr,"%d/%d/%d",day,month,year);
    Serial.println(buff_tmp);
  }
  else

          msg_tmp.toCharArray(msg, msg_tmp.length()); // the last char will be NULL, design to replace \n
      }else{
        msg[0]=0;
        Serial.println("MSG buffer overflow! Length = " + msg_tmp.length());
      }
    
        break; 
