I just put the engine back in my 92 Corolla after a much needed reseal. I plugged in everything I can see and it looks as though everything is back in its place. The car will start and run but it runs extremely rough. It has an extremely erratic idle, it will rev up to 2500rpm then go down to 500 then back to 2500. Just Vroom...Vroom...Vroom... Then when I apply any amount of throttle it will rev up to almost 5000rpms and then come back down. Even if I just barely tap the throttle.I didn't go deep in the engine, or remove the timing belt when pulling it. Essentially just pulled the engine out and put it back in. I did replace both exhaust and intake manifold gaskets as a part of the reseal.
I have checked for stored codes and there are not any. The check engine light just flashes continuously. I have gone through and made sure every vacuum line is connected and every sensor is plugged in.
Any suggestions or advice would be much appreciated.