1998 BMW 7 series

Question by lizzyib posted 1 month ago in BMW

I plug in my air flow sensor and my car chokes and won’t idle, when I remove it my car runs great, changed it with my boyfriends ( exact car) still dose the same thing, he passes smog , that’s what I’m attempting at?