Your PO340 isn't something to ignore. Here's a thread for a quick possible fix:
Alright well this seemed to pop up out of the blue, was driving the car find last night, also had the car out this morning and didn't feel any problems. Well took my daughter to her mother's an hour ago and I noticed the car was very sluggish, hesitant I definitely knew something wasn't right...
www.focusst.org
If reseating the sensor connectors doesn't fix it there are other threads you need to read. The Site Search on this website is pitiful, but Google Site Search works just fine. Open up Google and type or paste this into the search box:
site:focusst.org p0340
If you need more guidance after doing the research and troubleshooting that you can do, start a new thread asking for help. Be sure to include year, mods, miles, Trouble Codes, anything you did to the car around the time of the codes, and what you already tried to do to fix your car.