gyro sensor to measure angle

I asked if there is a way to measure angle with the gyro sensor.

You cannot measure an angle using a rate gyro. You can measure only the change from a starting angle, and even then, only for a short period of time.

In addition to the comments of reply #3, rate gyros drift and the drift rate depends on temperature.

So, using just a rate gyro, it is impossible to measure long term changes in an angle.