Interface witmotion 6 axis accelerometer

Hi all... i am trying to interface witmotion 6 axis accelerometer to arduino board. It has a serial output. The company has provided a sample code for the sensor for arduino uno. but after uploading the code into my board the serial moniter didn't took any reading from the sensor. i am posting the code below . please help

unsigned char Re_buf[11],counter=0;
unsigned char sign=0;
float a[3],w[3],angle[3],T;
void setup() {
// initialize serial:
Serial.begin(115200);
}

void loop() {
if(sign)
{
sign=0;
if(Re_buf[0]==0x55) //检查帧头
{
switch(Re_buf [1])
{
case 0x51:
a[0] = (short(Re_buf [3]<<8| Re_buf [2]))/32768.016;
a[1] = (short(Re_buf [5]<<8| Re_buf [4]))/32768.0
16;
a[2] = (short(Re_buf [7]<<8| Re_buf [6]))/32768.016;
T = (short(Re_buf [9]<<8| Re_buf [8]))/340.0+36.25;
break;
case 0x52:
w[0] = (short(Re_buf [3]<<8| Re_buf [2]))/32768.0
2000;
w[1] = (short(Re_buf [5]<<8| Re_buf [4]))/32768.02000;
w[2] = (short(Re_buf [7]<<8| Re_buf [6]))/32768.0
2000;
T = (short(Re_buf [9]<<8| Re_buf [8]))/340.0+36.25;
break;
case 0x53:
angle[0] = (short(Re_buf [3]<<8| Re_buf [2]))/32768.0180;
angle[1] = (short(Re_buf [5]<<8| Re_buf [4]))/32768.0
180;
angle[2] = (short(Re_buf [7]<<8| Re_buf [6]))/32768.0*180;
T = (short(Re_buf [9]<<8| Re_buf [8]))/340.0+36.25;
Serial.print("a:");
Serial.print(a[0]);Serial.print(" ");
Serial.print(a[1]);Serial.print(" ");
Serial.print(a[2]);Serial.print(" ");
Serial.print("w:");
Serial.print(w[0]);Serial.print(" ");
Serial.print(w[1]);Serial.print(" ");
Serial.print(a[2]);Serial.print(" ");
Serial.print("angle:");
Serial.print(angle[0]);Serial.print(" ");
Serial.print(angle[1]);Serial.print(" ");
Serial.print(angle[2]);Serial.print(" ");
Serial.print("T:");
Serial.println(T);
break;
}
}
}
}

void serialEvent() {
while (Serial.available()) {

//char inChar = (char)Serial.read(); Serial.print(inChar); //Output Original Data, use this code

Re_buf[counter]=(unsigned char)Serial.read();
if(counter==0&&Re_buf[0]!=0x55) return; //第0号数据不是帧头
counter++;
if(counter==11) //接收到11个数据
{
counter=0; //
sign=1;
}

}
}

@gaurav_karnani, yours is a new question so I have suggested to the Moderator to move you to your own Topic.

Please tell us in as much detail as possible what happens when you run your program and what you want it to do that is different.

To make it easy for people to help you please modify your post and use the code button </>
codeButton.png

so your code 
looks like this

and is easy to copy to a text editor. See How to use the Forum

Also please use the AutoFormat tool to indent your code consistently for easier reading.

...R

Split from an unrelated topic