Use the control type fiber optic sensor with focusing lens to detect whether the object is protruding.