Read temp setting from inputs, instead of window. This prevents unexpected results when the window variables are refreshed.