A method for capturing a first angle of rotation of a first shaft of an engine, - a first marking carrier having sensor-readable markings (133, 134, 135, 136, 137) being provided, the markings (133, 134, 135, 136, 137) forming a first marking pattern, - the first marking pattern having marking segments comprising at least one first marking segment and one second marking segment, - the first marking carrier being set in a rotary motion by a first shaft, - the angle of rotation of the first shaft being proportional to the angle of rotation of the first marking carrier, the first marking carrier being scanned by means of the first sensor and a first sensor signal being generated by the first sensor during the scanning, the first sensor signal being modulated by means of the markings (133,134,135,136,137) on the first marking carrier, and an angular velocity of the first shaft being known or able to be estimated for at least part of a revolution and being assumed approximately constant, and a computing unit being provided, comprising - a memory unit having a memory area having stored marking segments, comprising at least one first stored marking segment and one second stored marking segment, - one sensor signal input, - one time encoder having a time signal, an association between a time progression of the first sensor signal and a time signal being performed by means of the computing unit, and the following method steps being performed by means of the computing unit: a) recovering a first marking segment from the first sensor signal, and then b) deriving a first exclusion criterion from the recovered first marking segment for excluding the first stored marking segment, and then c) excluding the first stored marking segment by means of the first exclusion criterion, and then d) checking whether a difference of a total number of stored marking segments less a number of excluded stored marking segments is equal to one, and transitioning to method step g) if the difference is equal to 1, and transitioning to method step e) if the difference is greater than one, e) recovering a further marking segment from the first sensor signal, deriving a further exclusion criterion, excluding a further stored marking segment by means of the further exclusion criterion, and then f) performing method step d) again, g) deriving the first angle of rotation from the non-excluded stored marking segment. - a first marking carrier having sensor-readable markings (133, 134, 135, 136, 137) being provided, the markings (133, 134, 135, 136, 137) forming a first marking pattern, - the first marking pattern having marking segments comprising at least one first marking segment and one second marking segment, - the first marking carrier being set in a rotary motion by a first shaft, - the angle of rotation of the first shaft being proportional to the angle of rotation of the first marking carrier, - a memory unit having a memory area having stored marking segments, comprising at least one first stored marking segment and one second stored marking segment, - one sensor signal input, - one time encoder having a time signal, a) recovering a first marking segment from the first sensor signal, and then b) deriving a first exclusion criterion from the recovered first marking segment for excluding the first stored marking segment, and then c) excluding the first stored marking segment by means of the first exclusion criterion, and then d) checking whether a difference of a total number of stored marking segments less a number of excluded stored marking segments is equal to one, and transitioning to method step g) if the difference is equal to 1, and transitioning to method step e) if the difference is greater than one, e) recovering a further marking segment from the first sensor signal, deriving a further exclusion criterion, excluding a further stored marking segment by means of the further exclusion criterion, and then f) performing method step d) again, g) deriving the first angle of rotation from the non-excluded stored marking segment.