This code uses 6 DOF IMU to get the oriantation (pitch, roll, yaw) for ESP32.
If you want to use it with Arduino Uno you can comment out ENABLE_WIFI definition
If you are using ESP32 you can define the SSID & password of your wifi network and enter the IP of the UDP with the server program.