The 40 LHE linear position sensor from Vishay measures strokes from 0 to 40 mm with ±1% full-stroke accuracy. Using Hall ...
You can get Hall effect controllers slightly cheaper, but you'd struggle to find as feature-rich a package without some heavy ...