A proximity sensor is a sensor able to detect the presence of nearby objects without any physical contact. A proximity sensor often emits an electromagnetic field or a beam of electromagnetic radiation, and looks for changes in the field or return signal.
Read more at: https://www.fierceelectronics.com/sensors/what-a-proximity-sensor