Yeah! @Sally261693.
Great to have you on the forum.
That’s totally possible.
Check out this thread that’s super similar to yours.
Here I use an arduino library to extract a vector.
From there you want to finding the heading unit vector (i, j) to figure out which way is forward.
Then you call the angle of the z vector AGAINST that i+j vector.
Are you using a microcontroller to read the IMU?
Have you programmed before?