Added scheduler to periodically sample temperature.