When my check engine light went on why did my gas gauge stop working? on 2007 Chrysler Pacifica

Happened yesterday while driving. First the check engine light went on and immediately my gas gauge failed. The tank is almost full.

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer
could be the level sensor in the tank it failed causing the check engine light to turn on.