Freelance project

Hi I need to output the number of rotations my phone is making and send this data in realtime to unreal.
The number of degrees clockwise or anticlockwise made by the phone needs to be accumulated/totaled into one value throughout the game play.
The phone will be connected to a wheel which is rotating so I only need 2d rotation info (no z axis info needed).
It can’t be tethered (connected by usb) so it must send data wirelessly.
If anyone can do this (I imagine using the sensor fusion code) and is interested please private message me.