If the idle was not high and the sensor corrected the code, I doubt you installed it wrong. I suspect you just need to adjust the TPS because the idle control is part of the TPS.
There is an adjustment process and I attached the steps that you need to follow. However, it appears they require a scan tool to do this. Let me know if you have questions. If you don't have a scan tool that can perform this then we may need to take it to a shop perform this process.
Images (Click to enlarge)
Thursday, June 4th, 2020 AT 5:40 PM