DTC P0507 = Idle Speed High

Check this link out to track down what the problem is.

First thing I would recommend tho is to do a tune up, and make sure to check your coolant level. Go through all of your electrical connections and make sure they are all connected correctly and make sure that all of your vacuum lines are in good shape(not cracked) and replace or repair as needed.

Good luck!!