The coil of the relay is fed from the headlight power cable so that it will only be supplied with +12V when the headlight switch is on. If the headlights are on and the driver's door is opened, the door switch will complete the coil circuit which will complete the high current circuit to the warning buzzer.