import time import Socket import TempSensor import boto3 Socket.Initialise() highest_temp = 0 lowest_temp = 100 TABLE_NAME = "HB_Fermentation" REGION = "eu-west-2" session = boto3.Session(region_name=REGION) boto3_dynamo = session.resource('dynamodb', REGION) f_table = boto3_dynamo.Table(TABLE_NAME) while True: temp = TempSensor.read_temp(TempSensor.temp_sensor_blue) temp_top = TempSensor.read_temp(TempSensor.temp_sensor_black) if temp > highest_temp: highest_temp = temp if temp < lowest_temp: lowest_temp = temp print('Current: ' + str(temp) + ' Highest: ' + str(highest_temp) +