Added printing state with temperature.
Changed state order for minimum code size and IDLE=0