My Infrared Sensor can't detect black colour, how to solve this!

I just bought infrared sensor in order to count amount of black cable in the factory...
It is quite sensitive to detect, but to detect black color cable, it can not.

In the principle, I know that black color absorb all the light coming, so it means when the sensor can not get any reflected light.
Am I right?

But I need to deteck black color, any idea how to solve this?
Here is the sensor I bought

Yes you're right.

Black color block all the light so it doesn't come back to receiver after reaching your cable.

As I know, the only (but not cheap) way to read black correctly is to use a laser or maybe an IR barrier (it depends on how this cable travel in the factory).

Unfortunately after some testing also reflex sensor with background suppression has problem with black color although supplier declare best performance than reflex sensor without background suppression.

how if I use ultrasonic sensor?

Sorry I don't know too much about ultrasonic sensor. Never tryed one.

Hmm, I think I can manipulate the programming so when the sensor doesn't receive any signal, then it is counting.

I don't know how are you managing cables and the other parts of the project. Cables size and so on.

We're using a Keyence laser but we need accuracy and precision over little black thing and it's the only solution.