The ranging sensor drives the camera's two-lens autofocus system, which is effectively two fixed focus zones that the camera can swap between. To do this, the camera sends out infrared lights, ...
This is a proprietary optical communication module, apparent as a small dot on the back of the phone and the lens where data is transferred as light (near-infrared laser) at speeds of up to 10 Gbps.