AVR controls the generator’s output voltage by sensing the voltage from the main stator and dynamically adjusting the excitation current fed to the rotor. This ensures a stable and constant voltage level, protecting connected electronic devices from damage caused by sudden power spikes or voltage drops.