A sensor is a physical device or biological organ that detects, or senses, a signal or physical condition and chemical compounds.
A photocell sensor located at an offset responds when the beam is reflected from an object to the sensor, whence the distance is calculated by triangulation.
Hysteresis is an error caused by the fact that the sensor not instantly follows the change of the property being measured, and therefore involves the history of the measured property.
For example if the Warning High threshold for the temperature sensor is set to 80 degrees and the sensor were to vary between 79 and 80 you could be faced with a very large number of emails, traps, and events logged.
In this case the sensor is in the normal state and will ignore momentary fluctuations into the error state.
Example, an airflow sensor or water detector may have temporary drops in readings which are normal operating characteristics, a logical time limit is set to show abnormal conditions.