There isn't really a connector to connect those cables to the male pins on your RPi. A common solderless method is using lever connectors like the WAGO 221 series. You use a female-to-male Du-pont jumper cable from the RPi to the lever connector, and connect one of the wires fo the sensor to the other hole on the lever connector.

Only top voted, non community-wiki answers of a minimum length are eligible