An optical input device for measuring the movement of a finger (15) ia accommodated in a housing provided with a transparent window (12) for transmitting a measurement beam (13) from a diode laser (3) to the finger and radiation reflected by the finger to a detector (4). This feature prevents that grease and dust disturb and block the measuring beam.