Error fixed in the readGyroscope function