from stm32 import stm32_distance SD = stm32_distance("COM13") while True: print(SD.get_distance())