I would have checked/replaced the COOLANT temp sensor & wiring before the intake AIR temp sensor.

It likely has a bigger effect on idle speed via the computer.