Step 1: Understand the function of a sensor.
A sensor is a device that detects and measures physical parameters, such as temperature, pressure, light, or motion, and converts them into signals or data that can be interpreted by a system.
Step 2: Conclusion
The function of a sensor is to measure physical parameters.
Final Answer:
\[
\boxed{\text{Measures physical parameters}}
\]