Gyroscope sensor UM6 communication : no header packet "snp" found

First of all, use code tags to post your code - the forum software has mangled it.

Then I'd suggest that you null terminate your data array once you've read it and print what it contains to serial to help you debug.