changed calibrateTemp to setGainOffset