The code is related to the video on my YouTube channel related to IMU data visualization.
Arduino Uno
IMU Sensor
Graphical Data Output
Orientation Visualization
I dont take all the credit of the code. I took some help from the internet to create the whole code.