updated method to use sharedpref for high/low temps