Hello and Welcome to Justanswer,
My name is XXXXX XXXXX I am here to try and assist your with your question.
Was it idling high before you installed the new TP sensor?
Thank you for asking your question on JustAnswer.
The start with making sure you have the TP installed properly and not 180 degrees out. Try try removing the TP sensor from the throttle body while its plugged in, if the idle drops back to normal then you have it installed wrong. If it dosnt then you likely have a bad or defective TP sensor.
Ok then its not the TP sensor, I would now move to the IAC (idle air control) valve and try unplugging it and see if the idle drops. Let me know.