#Import the `adafruit_adt7410` library
#get the I2C device
#instantiate the sensor:

import board
import adafruit_adt7410
i2c = board.I2C()
therm = adafruit_adt7410.ADT7410(i2c)

#functions to read the sensor:
def get_temp_C():
    "Temperature Celsius"
    T = therm.temperature
    return f"{T:0.1f} C"

def get_temp_F():
    "Temperature Fahrenheit"
    T = therm.temperature * 1.8 + 32
    return f"{T:0.1f} F"