The invention describes an optical rotary transmitter with at least two housing parts, which are mounted so as to be rotatable relative to one another about an axis of rotation.