2002 Buick LeSabre Limited will not go past 20 mph

I have a 2002 Buick LeSabre limited what is happening when I Drive it it will not accelerate above 20 miles per hour but once in awhile after driving it for about 5 or 10 minutes it acts fine the check engine light is on but I have not had a chance to get it scanned for codes could the speed sensor be bad or do you think the transmission may be bad someone also said that the trans filter may be clogged
0
Answers
My first thought is to check the MAF sensor. That can be done by disconnecting the connector to the MAF sensor and then starting the engine to see if the car will run better.
If the engine light is not flashing yellow, I am not sure why you'd have a problem getting above a certain speed. But the engine may be in "limp home" mode where it keeps running but only in a way that protects the engine but will get your car moving to safety.
2014 Malibu 2LT, 2015 Cruze 2LT,