I don't know which of the various types might be compatible, however:Different ECUs have different needs. If you use the wrong sensor or an ECU otherwise gets a poor reading, economy and perfromance will be reduced (sometimes by a lot).
- 2 pole sensors change resistance at two temperatures
- 1 pole sensors change resistance at one temperature
I would buy the right one (new from BMW) for the car (not the manifold) and go with that rather than waste any time on it: They often go faulty.
To test one, you just need the BMW TIS or a Bently manual to show you the test procdeure, (or it might be searchable on this board).
Good luck,Nick