Check and clean the ground connections: transmission, engine (valve cover), thermostat (main ground for ECU), car body, and negative battery terminal
Maybe the engine coolant temp sensor or MAP sensor.
Describe the idle
-when engine is cold
-when engine is getting close to operating temp
-when engine is at operating temp