Create sheltered function
Fixed water temperature code
Use get_temperature() to fetch temperature
Minor fixes