Check Engine Light on after disconnecting and reconnecting air flow sensor plug

As the title says, I disconnected the air flow sensor (there was no check engine light prior to this) and reconnected it in just a few minutes, however after reconnecting the check engine light is on and stays on.
0