Proximity sensors detect without direct contact approaching objects. Depending on the material of the object different sensor technologies are recommended:
Inductive proximity sensors
Inductive proximity sensors: Detection of metal
Capacitive proximity sensors
Capacitive proximity sensors: Detection of all materials