Hi
This video Simple Arduino Robot uses a MPU6050 to manage steering - YouTube might help.
It talks about some of the issues you can run into when a Leonardo is linked to a 6050.
If it's not what you're needing, please say so, & maybe I or, someone else, can post something
that will help.