Step 1: Understand the function of proximity sensors.
Proximity sensors are devices used to detect the presence of nearby objects without physical contact. They typically work by measuring the distance between the sensor and the object.
Step 2: Conclusion
Proximity sensors are primarily used to measure the distance between the sensor and the object.
Final Answer:
\[
\boxed{\text{Measure the distance}}
\]