You've got two threads of the same question, you gotta clarify on that later. Anyway welcome here.
not much can be said, but the proximity sensor is not very good for metal detection anyway, the range is too short.
The circuit from the datasheet is:
**broken link removed**