Hinges with electrical switching function are used for machines and housings to fasten and hold covers and doors and allow for pivoting. Electrical safety switches are integrated in the hinges to monitor and send a signal when doors are opened, indicated by switch contacts interrupting the safety circuit.