A electrical unit consisting of a proximity switch and a cable terminal part is described, where the proximity switch has an outside housing and an insulation part, positioned on one end face of the outside housing and having a terminal element with terminals which lead to the outside. T