Copyright (C) 2011 by Carl Ådahl
Permission is hereby granted, free of charge, to any person obtaining a copy
Uses memoization to reduce IO at the cost of a little memory.
print("Temperature: " .. sys.class.thermal.thermal_zone0.temp / 1000 .. " C")
local file = io.open(path, 'r')
local line = file and file:read('*line')