A method for protecting electronic components of an analyzer that is connected to a sensor unit via at least two connecting lines against excessive electrical voltages due to electrostatic charging, wherein the sensor unit comprises a sensor measuring arrangement for sensing at least one physical variable and a sensor housing partly or fully enclosing the sensor measuring arrangement and wherein the sensor unit with the sensor housing is electrically connected to a conductive part of a motor vehicle or trailer,
- said method comprising discharging electrostatic charge from the conductive part of the motor vehicle or trailer via a predetermined discharge path between the sensor housing of the sensor unit and a connecting line that connects the sensor measuring arrangement of the sensor unit to the analyzer.