no M42s have a MAF (which is what a hot-wire sensor is).
they have a flapping-door-style air-flow meter (AFM).
M42 AFM looks like this:

M44 MAF looks like this:

apologies if i sound patronizing, i just don't want you to buy the wrong thing from a similar-but-not-the-same engine.
if you are from the US, i would buy an air-flow meter from the same generation as your donor engine's ECU (either e30 or pre-95 e36) just to be safe... but the ECU pinouts are the same between the two, so if you can't find an exact match you may be able to get away with risking it.