<p>The optical sensor (1) has a transmitter (3) for emitting transmission rays, and a receiver (6) for receiving the transmission rays. The transmitter and/or the receiver are supported in an integrally formed blind tube, where parts of the blind tube form a light shade and other parts of the blind tube are provided for supporting optics and/or for forming a blind. The blind tube is manufactured from a plastic injection molding part.</p>