From f430cc6801d7305d97e63e24bee83395cd5bc52f Mon Sep 17 00:00:00 2001 From: sickprodigy Date: Wed, 24 Jan 2024 20:09:00 -0500 Subject: [PATCH] comment out celsius temperature --- Scripts/temperature-sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/temperature-sensor.py b/Scripts/temperature-sensor.py index 73cadc7..28a4fc4 100644 --- a/Scripts/temperature-sensor.py +++ b/Scripts/temperature-sensor.py @@ -13,7 +13,7 @@ while True: print(rom) tempC = ds_sensor.read_temp(rom) tempF = tempC * (9/5) +32 # convert to farenheit - print('temperature (ºC):', "{:.2f}".format(tempC)) # The result will have two decimal places {:.2f} + # print('temperature (ºC):', "{:.2f}".format(tempC)) # The result will have two decimal places {:.2f} print('temperature (ºF):', "{:.2f}".format(tempF)) print() time.sleep(5) # the loop will repeat every 5 seconds \ No newline at end of file