Source: {"pile_set_name": "USPTO Backgrounds"}

1. Field of the Invention
The present disclosure relates to a package structure and method thereof; in particular, to a package structure and method thereof for an optical module.
2. Description of Related Art
Currently, the optical proximity sensor has become the major choice of electronic devices for distance sensing. For example, when an electronic device is close to the face of a user or placed in a pocket, the optical proximity sensor can detect an object close by, and the electronic device can immediately turn off the display and/or the touch function to avoid inadvertent touch and save power consumption, thereby providing a better user experience.
The light source of the optical proximity sensor emits light, and the light is reflected by the object to a sensor of the optical proximity sensor, and then converted into electronic signals for processing to achieve the purpose of detecting objects. The light source and the sensor of the optical proximity sensor must be separated from each other by a shield, so that the light source and the sensor can be disposed on the same substrate, to avoid interference with each other and reducing the product performance.
However, the optical proximity sensor should be covered with a cover when assembled with the electronic device, and since the cover cannot always fit perfectly against the optical proximity sensor, an air gap between the cover and the shield of the optical proximity sensor is often formed. Thus, the distance between the cover and the shield is often inconsistent, resulting in measurement errors of the optical proximity sensor.