Emerson Interview Question

How PID works in ac to control room temperature?