Pontiac Repair: engine hestitation, air flow sensor, crank sensor


Question
About 1 week ago my 1999 Montana started to cut out, as if I was out of gas.  But I had at least 1/4 tank.  I made it to a gas station and filled it up.  It continues to hesitate.  After about 5 minutes it stopped.  Then after I let the car sit for 15-20 minutes, it would do it again.  I thought it might be a bad fuel pump.  My mechanic tried to scan the ecm but it only showed a rpm drop .  The hesitation was so bad at times that the bat lite flickered.  The following day, I unplugged the egr valve.  It ran perfect for about 100 miles and then started acting up again, as if I was running out of gas.  We changed the fuel filter, but no change.  I drove it to day, it acted up periodically.  Then all of a sudden the check engine light started flashing.  We scaned the ecm  code 300.  Was my fuel pump starting to go and finally today fail!  Or is the egr, or cam sensor bad.  We replaced the crank sensor the other day.  

Answer
it never ceases to amaze me how mechanics all over the country just change sensors all day throwing peoples money away.
Most of those sensors will either work, or not work.
No in betweens.
Check out the Air Flow Sensor, The big round thing connected inline with your air intake.
Take the rubber hoses off the intake and  remove the sensor assembly, then look inside of it.
There is one or two little wires that run down through the middle of it, with little sensors that measure the airflow.
DO NOT TOUCH the wires, they are pretty fragile.
Check the little wires for dirt buildup, corossion, etc, etc.
If it is corroded or dirty, you can try to clean it but i would look for a used part from a salvage yard.
That sensor will cause the car to stall out and not run very good, while you are in there check the air filter.