I can see from your code that you are using address 0x27. That memory access is usually with I2C devices. Are you using your board with any other device or you are just reading the port directly?
Take a look at this post Re: GY-88 i2c undetectable and make sure you are reading from the correct register address.
Also, take a look at example 4 from EmutexLabs .