You may have already fixed your problem
You may need to clear the codes for the Check Engine Light to go away. It may be that the sensor is clean but the check engine light is being shown because it's retained in the computer's memory.
Once the codes are cleared, see if the CEL stays off or if it returns.
If the issue returns
Based on these two codes it looks like a clear case of the MAF sensor needing replacement. Cleaning doesn't always do the trick, especially if the MAF sensor hot-wire element has a lot of dust/dirt accumulation.
One other thing to consider is the possibility of a problem related to the wiring of the MAF sensor, which could explain the codes as well.
To see if this is the issue, it's a good idea to have the MAF readouts inspected with a scan tool:
- A "zero" reading would indicate a wiring issue
- If the readout values change with RPM then the codes are because the sensor is fouled and needs replacement.