Multiple Gyro sensor(MPU-6050) reading using Arduino It contains complementary filter.
You can fix line:44 pins array to pin number connected to MPU-6050 AD0 pin.
MPU-6050 read : https://playground.arduino.cc/Main/MPU-6050\
Complementary filter : http://www.geekmomprojects.com/gyroscopes-and-accelerometers-on-a-chip/