Connecting Sensors To A Production PCB
They might become loose over a couple of years. You should use a latching connector, but that really depends on your application and requirements.
Check the usual suspects, 3M, Tyco, Molex, Hirose and tons of others.
It is usually the work of the assembly house, either SMT or TH (Contract manufacturers), PCB manufacturers produce PCBs, not assembled products.