Compact solutions for measuring short strokes in your automation system