The sensor has a code plate (2) with an optically scannable angle code (3) and an optical scanner. At least one transmitter emits optical signals and at least one receiver element receives the angle code scanning signals. At least one light guide (8) between the transmitter element(s) and the receiver element(s) deflects the signals emitted by the transmitter element(s).