Fix tonumber
Reworked temperature logic