A rotary switch including a control element, a light-emitting device arranged on a printed circuit board and configured to emit light, and at least two receivers arranged on the printed circuit board in correspondence with the light-emitting device and configured to detect switching positions of the rotary switch. Further, the light-emitting device is mounted radially at an outside portion of inside of a hollow cylindrical extension of the control element, and wherein on level with the light-emitting device, the extension includes orifices evenly distributed around a periphery of the extension, and that opposite the light-emitting device, on an exterior side of the extension, the at least two receivers are arranged.