Implemented state transitions with temperature conditions