PCR tests only detect live virus, not antibodies.
there are several antibody tests for covid. As far as I'm aware, the vaccines only trigger the anti-spike protein antibodies, so if you test positive for other types of covid-19 antibodies, you've probably had it.