Syntax error on line 10: Syntax Error in Expression.
        state = (temp <= 20) ? Cooling : Heating; // Initial state based on initial temperature
