A proximity sensor for determining two-dimensional coordinates of a proximal object, comprising: a housing (601, 602); a one-dimensional array of alternating light emitters and detectors mounted in said housing, comprising: a plurality of light pulse emitters (101 - 103, 111) for projecting light (336, 401, 403 - 405, 410, 420) out of said housing along a detection plane (912, 921, 922); and a plurality of primary light detectors (201 - 208, 210 - 215) for detecting reflections (402, 406 - 409, 411 - 413, 421) of the light projected by said emitters, by a reflective object in the detection plane (901, 910); a plurality of primary lenses (302, 303, 311, 312) mounted and oriented in said housing relative to said emitters and said primary detectors in such a manner that the primary light detectors receive maximum intensity when light enters a corresponding primary lens at a first particular angle, enabling the determination of a location in the two-dimensional detection plane corresponding to each emitter-detector pair, whereby for each emitter-detector pair, light emitted by the emitter of that pair passes through one of the primary lenses and is reflected by the object back through one of the primary lenses to the detector of that pair when the object is located at a two-dimensional position (902 - 906, 908), from among a primary set of positions in the detection plane, that position being associated with that emitter-detector pair; and a processor (701, 702) connected to said emitters and to said primary detectors, for synchronously co-activating emitter-detector pairs, and configured to calculate a two-dimensional location of the object in the detection plane by: determining an emitter-detector pair among the co-activated emitter-detector pairs, for which the detector detects a maximum amount of light, and identifying the position associated therewith, determining additional positions that are associated with co-activated emitter-detector pairs and that neighbor the thus-identified position, and calculating a weighted average of the thus-identified position and the thus-determined additional positions, wherein each position's weight in the average corresponds to a degree of detection of the reflected light beam for the emitter-detector pair to which that position is associated. a housing (601, 602); a one-dimensional array of alternating light emitters and detectors mounted in said housing, comprising: a plurality of light pulse emitters (101 - 103, 111) for projecting light (336, 401, 403 - 405, 410, 420) out of said housing along a detection plane (912, 921, 922); and a plurality of primary light detectors (201 - 208, 210 - 215) for detecting reflections (402, 406 - 409, 411 - 413, 421) of the light projected by said emitters, by a reflective object in the detection plane (901, 910); a plurality of light pulse emitters (101 - 103, 111) for projecting light (336, 401, 403 - 405, 410, 420) out of said housing along a detection plane (912, 921, 922); and a plurality of primary light detectors (201 - 208, 210 - 215) for detecting reflections (402, 406 - 409, 411 - 413, 421) of the light projected by said emitters, by a reflective object in the detection plane (901, 910); a plurality of primary lenses (302, 303, 311, 312) mounted and oriented in said housing relative to said emitters and said primary detectors in such a manner that the primary light detectors receive maximum intensity when light enters a corresponding primary lens at a first particular angle, enabling the determination of a location in the two-dimensional detection plane corresponding to each emitter-detector pair, whereby for each emitter-detector pair, light emitted by the emitter of that pair passes through one of the primary lenses and is reflected by the object back through one of the primary lenses to the detector of that pair when the object is located at a two-dimensional position (902 - 906, 908), from among a primary set of positions in the detection plane, that position being associated with that emitter-detector pair; and a processor (701, 702) connected to said emitters and to said primary detectors, for synchronously co-activating emitter-detector pairs, and configured to calculate a two-dimensional location of the object in the detection plane by: determining an emitter-detector pair among the co-activated emitter-detector pairs, for which the detector detects a maximum amount of light, and identifying the position associated therewith, determining additional positions that are associated with co-activated emitter-detector pairs and that neighbor the thus-identified position, and calculating a weighted average of the thus-identified position and the thus-determined additional positions, wherein each position's weight in the average corresponds to a degree of detection of the reflected light beam for the emitter-detector pair to which that position is associated. determining an emitter-detector pair among the co-activated emitter-detector pairs, for which the detector detects a maximum amount of light, and identifying the position associated therewith, determining additional positions that are associated with co-activated emitter-detector pairs and that neighbor the thus-identified position, and calculating a weighted average of the thus-identified position and the thus-determined additional positions, wherein each position's weight in the average corresponds to a degree of detection of the reflected light beam for the emitter-detector pair to which that position is associated.