2002 Nissan Sentra Q&A

2002 Nissan Sentra Question: When drive car lose power but dont cut off. It goes into a loping idle.

Cranks good, idle good, but when drive lose power, goes into low idle no power, but don't stall. -
Answer 1
scan codes and post so we can adv,could be crank sensor or other issues -