A proximity sensor including a housing, light emitters mounted in the housing for projecting light out of the housing along a detection plane, light detectors mounted in the housing for detecting amounts of light entering the housing along the detection plane, whereby for each emitter-detector pair (E, D), when an object is located at a target position p(E, D) in the detection plane, corresponding to the pair (E, D), then the light emitted by emitter E is scattered by the object and is expected to be maximally detected by detector D, and a processor to synchronously activate emitter-detector pairs, to read the detected amounts of light from the detectors, and to calculate a location of the object in the detection plane from the detected amounts of light, in accordance with a detection-location relationship that relates detections from emitter-detector pairs to object locations between neighboring target positions in the detection plane.