A sensing assembly. The sensing assembly is spaced apart from a magnet that has a magnet length, and includes a compensation module and a string of magnetic sensors that has a string length. The magnetic sensors are grouped into a plurality of magnetic sensor groups. Each of the magnetic sensors generates a respective intermediate signal based on the magnet. The compensation module assigns a plurality of respective gains to the respective magnetic sensor groups based on a difference between the magnet length and the string length, and applies the respective gains to the respective intermediate signals of the respective magnetic sensor groups to generate respective adjusted signals.
展开▼