Idle was fine at around 1,000rpm but I had reset the code only for it to return with the additional misfiring exhaust gas codes.Have you tried to reset adaptations before ditching the sensor?
From experience I can say this worked for my after market idle control valve.
had a very low idle at 600rpm and reseting adaptations solved the issue.