Gyros generally output an "offset" when held stationary, and it will be different on each axis. Calibration is required, which removes the offset after averaging some number of stationary readings, before useful measurements can be made.
Of course, there could be other problems with your setup and code.