RepairPal Certified shops can diagnose and repair your 1998 Dodge Neon. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.
The P0340 code is almost certainly setting due to the "cutting out", not as evidence the sensor has failed.
Testing of engine performance including fuel delivery, spark and air intake, as well as engine timing and emissions controls is needed.