Proximity sensors detect the presence of an object by emitting an electromagnetic field or beam of light and then monitoring the reflection or absorption of that signal. When an object comes into close proximity to the sensor, it causes a change in the signal, which is then detected by the sensor, indicating the presence of the object.