Fixed formula to get and set temperature using ad595