The invention relates to a light barrier in which an optotransmitter (6) and an optoreceiver (7) are introduced into a semiconductor body (1). An encoding disc (4) is provided in order to interrupt or release the light path between the optotransmitter (6) and the optoreceiver (7). <IMAGE>