Students use a refractometer to measure salinity levels using refraction: the degree to which light bends as it passes through different materials. Saltier water bends light farther than fresher water, so a trained refractometer user can check salinity levels (measured in ppt, or parts per thousand) with just a glance.
Sailors on board the original Half Moon in 1609 had to simply go by taste.