Even after I followed the calibration instructions above I got strange results in my test programs.
But then I found this topic about polling and the IMU sensor:
viewtopic.php?f=104&t=110594
Using the polling tread solution everything works!

Thanks ShiftPlusOne!