An optical proximity sensor module comprising: a substrate (P); a light emitter (E) mounted on a first surface of the substrate (P), the light emitter (E) operable to emit light at a first wavelength; a light detector (D) mounted on the first surface of the substrate (P), the light detector (D) operable to detect light at the first wavelength; an optics member (O) disposed parallel to the substrate (P), wherein the optics member (O) comprises first and second transparent portions (t; 5, 6) that are transparent to light at the first wavelength, the optics member (O) further comprising a blocking portion (b) that attenuates or blocks incident light at the first wavelength, and wherein the first transparent portion (t; 5, 6) is disposed above the light emitter (E) and the second transparent portion (t; 5, 6) is disposed above the light detector (D); and a separation member (S) composed of a non-transparent polymer material containing a pigment, wherein the separation member (S) is disposed between, and in contact with, the substrate (P) and the optics member (O), wherein the separation member (S) surrounds the light emitter (E) and the light detector (D), the separation member (S) including a wall portion that extends from the substrate (P) to the optics member (O) and that separates the light emitter (E) and the light detector (D) from one another, wherein : the first transparent portion (t; 5, 6) of the optics member (O) comprises a first passive optical component (L), and the second transparent portion (t; 5, 6) of the optics member (O) comprises a second passive optical component (L), wherein the first passive optical component (L) is disposed above the light emitter (E) and the second passive optical component (L) is disposed above the light detector (D). a substrate (P); a light emitter (E) mounted on a first surface of the substrate (P), the light emitter (E) operable to emit light at a first wavelength; a light detector (D) mounted on the first surface of the substrate (P), the light detector (D) operable to detect light at the first wavelength; an optics member (O) disposed parallel to the substrate (P), wherein the optics member (O) comprises first and second transparent portions (t; 5, 6) that are transparent to light at the first wavelength, the optics member (O) further comprising a blocking portion (b) that attenuates or blocks incident light at the first wavelength, and wherein the first transparent portion (t; 5, 6) is disposed above the light emitter (E) and the second transparent portion (t; 5, 6) is disposed above the light detector (D); and a separation member (S) composed of a non-transparent polymer material containing a pigment, wherein the separation member (S) is disposed between, and in contact with, the substrate (P) and the optics member (O), wherein the separation member (S) surrounds the light emitter (E) and the light detector (D), the separation member (S) including a wall portion that extends from the substrate (P) to the optics member (O) and that separates the light emitter (E) and the light detector (D) from one another, wherein : the first transparent portion (t; 5, 6) of the optics member (O) comprises a first passive optical component (L), and the second transparent portion (t; 5, 6) of the optics member (O) comprises a second passive optical component (L), wherein the first passive optical component (L) is disposed above the light emitter (E) and the second passive optical component (L) is disposed above the light detector (D). the first transparent portion (t; 5, 6) of the optics member (O) comprises a first passive optical component (L), and the second transparent portion (t; 5, 6) of the optics member (O) comprises a second passive optical component (L), wherein the first passive optical component (L) is disposed above the light emitter (E) and the second passive optical component (L) is disposed above the light detector (D). <EOS>