from lib import gyro import time while True: print(gyro.getAllOut()['rot']) time.sleep(1)