import board import busio import adafruit_bmp280 import time def get_temperature(): while True: print(get_temperature()) time.sleep(1)