CPARKTX:
I have successfully installed a GY-521 (MPU-6050) and can read the raw values ... I am trying to return the current orientation simply as "which side is up".
Suggest you print out the raw values and just see how they change as the orientation changes. It should be obvious from the output which sensor axis is aligned with vertical in each orientation.