while True: line = open("/sys/class/thermal/thermal_zone0/temp").readline() socTemp.update(int(line)) agent.check_and_process()