A linear actuator comprising a first assembly, a second assembly, and a magnetic sensor. The second assembly is linearly movable with respect to the first assembly such that the linear actuator is configured so as to be in one of a plurality of linear positions. The first assembly and the second assembly cooperatively define a magnetic pathway. The magnetic pathway is configured to vary in length with linear movement of the first assembly with respect to the second assembly. The magnetic sensor is configured to output a signal indicative of the magnetic field flux routed via the magnetic pathway.