Thanks, I indeed found lots of Android examples. I quess that is indeed the easiest way than.
I think it might also be done with e.g. c# through the Gyrometer class, but all those examples seem to be for built in gyroscopes and not from usb.