Mafs on2015 Corolla s plus

I have a K&N typhoon cold air intake and a power chip on my 2015 Corolla s plus. I have already put two different jet power flow mafs on it and the check engine light still comes on . I put my old one back on and no problem. I have to get it right because the car has to have it . So what should I do to make it work ?