You tell me if you need a sensor. Here's what you said, which isn't enough information for me to say anything except...you said there was a code and for some reason decided to replace one that does nothing bad except set a light.
On maf, I'd say hit up JY's, ebay or amazon. Get a delco/original.