MPU6050

Hello, I have recently connected my MPU6050 to my Arduino uno amd I am currently able to read values from the MPU6050, The only problem I have is now being able to use those values in order to allow my project to work. My project is a human posture monitoring system, and i need to be able to use these values from the MPU6050 and work out whether the user has exceeded the set angle.

I have values from the MPU for between 85 and 95 degrees, but when the user bends less or more that that I need the on-board LED to flash. Has anyone got any Idea on how to do this. BTW i am very new to this and have used an example code to obtain the values.

any help would be greatly appreciated.

Thanks

Nathan