Patent ID: 7586078

Claim:
A method for forming a photoelectric switch, comprising: (a) providing a granular mold comprising a first slot and a second slot; (b) providing a light-filtering molding material and filling the first and the second slots with the light-filtering molding material; (c) providing a transmitter component and receiver component, wherein the transmitter component comprises a transmitting unit and a first pair of conducting wires coupled to the transmitting unit, and the receiver component comprises a receiving unit and a second pair of conducting wires coupled to the receiving unit; (d) respectively positioning the transmitter unit and the receiver unit into the light-filtering molding material(s) in the first and the second slots, wherein the first pair of conducting wires and the second pair of conducting wires are partially put into the light-filtering molding material in the granular mold; (e) fixing the transmitting unit and the receiving unit to form the photoelectric switch; wherein while the transmitter unit and the receiver unit are being positioned into the light-filtering molding material(s) in step (d), the transmitter component has no shell covering the transmitting unit and partially covering the first pair of conducting wires, and the receiving component has no shell covering the receiving unit and partially covering the second pair of conducting wires.