Refactored profile calculations.
Added condition on tempprobe 2 when turning on/off (prevent short
cycles).