I have a setup in which I have a camera mounted on 2 servos for motion in pitch and yaw. I want these servos to correspond to the movement of my head. For this I have an MPU6050 placed on my head and I want to know if there is a library for doing this easily and if this has been done before. Also if using the MPU6050 is complicated then please suggest a module on which doing this would be easy.
PS- I am a noob.