An optical proximity sensor module comprising: a substrate; a light emitter mounted on a first surface of the substrate, the light emitter operable to emit light at a first wavelength; a light detector mounted on the first surface of the substrate, the light detector operable to detect light at the first wavelength; an optics member disposed parallel to the substrate, wherein the optics member comprises first and second transparent portions (t; 5, 6) that are transparent to light at the first wavelength, the optics member 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 and the second transparent portion (t; 5, 6) is disposed above the light detector; and a separation member composed of a non-transparent polymer material containing a pigment, wherein the separation member is disposed between, and in contact with, the substrate and the optics member, wherein the separation member surrounds the light emitter and the light detector, the separation member including a wall portion that extends from the substrate to the optics member and that separates the light emitter and the light detector from one another, wherein: the first transparent portion (t; 5, 6) of the optics member comprises a first passive optical component, and the second transparent portion (t; 5, 6) of the optics member comprises a second passive optical component, wherein the first passive optical component is disposed above the light emitter and the second passive optical component is disposed above the light detector. a substrate; a light emitter mounted on a first surface of the substrate, the light emitter operable to emit light at a first wavelength; a light detector mounted on the first surface of the substrate, the light detector operable to detect light at the first wavelength; an optics member disposed parallel to the substrate, wherein the optics member comprises first and second transparent portions (t; 5, 6) that are transparent to light at the first wavelength, the optics member 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 and the second transparent portion (t; 5, 6) is disposed above the light detector; and a separation member composed of a non-transparent polymer material containing a pigment, wherein the separation member is disposed between, and in contact with, the substrate and the optics member, wherein the separation member surrounds the light emitter and the light detector, the separation member including a wall portion that extends from the substrate to the optics member and that separates the light emitter and the light detector from one another, wherein: the first transparent portion (t; 5, 6) of the optics member comprises a first passive optical component, and the second transparent portion (t; 5, 6) of the optics member comprises a second passive optical component, wherein the first passive optical component is disposed above the light emitter and the second passive optical component is disposed above the light detector. the first transparent portion (t; 5, 6) of the optics member comprises a first passive optical component, and the second transparent portion (t; 5, 6) of the optics member comprises a second passive optical component, wherein the first passive optical component is disposed above the light emitter and the second passive optical component is disposed above the light detector.