Apparatus for detecting a magnetic security feature of a valuable document, wherein the apparatus has: • a transport apparatus, configured to transport the valuable document through the apparatus on a transport plane in a direction of transport, • sensors (1-12, A-C) configured as magnetic sensors and having at least two security feature sensors and at least one compensation sensor (A-C), ∘ wherein the sensors (1-12, A-C) are arranged and configured in a line parallel to the transport plane and transversely with respect to the direction of transport such that transport of the valuable document past the line of sensors (1-12, A-C) results in the security feature sensors each capturing an individual strip of the valuable document in the direction of transport, and ∘ wherein the sensors (1-12, A-C) are arranged at a distance (D1, D2) perpendicularly with respect to the transport plane such that the distance of the security feature sensors perpendicularly with respect to the transport plane is configured such that a security feature is captured by at least one of the security feature sensors, and that the distance of the compensation sensor (A-C) perpendicularly with respect to the transport plane is configured such that a security feature is not captured by the compensation sensor (A-C), wherein the distance of the compensation sensor (A-C) is greater than the distance of the security feature sensors, and • an evaluation unit configured to receive the signals output by the sensors (1-12, A-C). • a transport apparatus, configured to transport the valuable document through the apparatus on a transport plane in a direction of transport, • sensors (1-12, A-C) configured as magnetic sensors and having at least two security feature sensors and at least one compensation sensor (A-C), ∘ wherein the sensors (1-12, A-C) are arranged and configured in a line parallel to the transport plane and transversely with respect to the direction of transport such that transport of the valuable document past the line of sensors (1-12, A-C) results in the security feature sensors each capturing an individual strip of the valuable document in the direction of transport, and ∘ wherein the sensors (1-12, A-C) are arranged at a distance (D1, D2) perpendicularly with respect to the transport plane such that the distance of the security feature sensors perpendicularly with respect to the transport plane is configured such that a security feature is captured by at least one of the security feature sensors, and that the distance of the compensation sensor (A-C) perpendicularly with respect to the transport plane is configured such that a security feature is not captured by the compensation sensor (A-C), wherein the distance of the compensation sensor (A-C) is greater than the distance of the security feature sensors, and ∘ wherein the sensors (1-12, A-C) are arranged and configured in a line parallel to the transport plane and transversely with respect to the direction of transport such that transport of the valuable document past the line of sensors (1-12, A-C) results in the security feature sensors each capturing an individual strip of the valuable document in the direction of transport, and ∘ wherein the sensors (1-12, A-C) are arranged at a distance (D1, D2) perpendicularly with respect to the transport plane such that the distance of the security feature sensors perpendicularly with respect to the transport plane is configured such that a security feature is captured by at least one of the security feature sensors, and that the distance of the compensation sensor (A-C) perpendicularly with respect to the transport plane is configured such that a security feature is not captured by the compensation sensor (A-C), wherein the distance of the compensation sensor (A-C) is greater than the distance of the security feature sensors, and • an evaluation unit configured to receive the signals output by the sensors (1-12, A-C).