A vehicle seat adapted for use in a vehicle includes a seat rail device arranged to extend between the vehicle seat and a vehicle to mount the vehicle seat to the vehicle. The seat rail device includes a lower rail coupled to the floor of the vehicle in a fixed position, an upper rail coupled to the vehicle seat and configured to be adjustable along a longitudinal axis relative to the lower rail, and a sensor device configured to detect a least one longitudinal position of the upper rail relative to the lower rail.