The present invention consists of an optical sensor for determining the angle and the torque of a rotatable object (13). The sensor contains at least one patterned surface (1) an ASIC (3), at least one lens (2) and at least one EMR source (16, 17). The ASIC (3) comprises processing means and an array of detectors for EMR. The at least one EMR source (16, 17) illuminates the patterned surface (1) and the at least one lens (2) focuses a part of the reflected EMR (5) from the patterned surface (1) onto the array of detectors for EMR. The patterned surface (1) contains a pattern including turning marks and laser marks (8). The at least one lens (2) focuses substantially EMR reflected by the turning marks (14) onto the array of detectors. The turning marks (14) are non-symmetrical.