Air mass gauge engine dependent?

Good evening, with my V40 2.0T Special Edition (165 HP) the air mass meter is probably defective. I would have a new one from private in view, however, this is from a diesel, but also phase II. If the seller were not a little further away, I would just try it, but would like to save me the way, if the LMM is not compatible. Has someone already had experience with it and built a brewed LMM from another engine? I am grateful for any answers. MfG -Patrick