when i start up cold runs rough about 3 min,,dig code says bank 1 and 2 lean on 2003 BMW 325i

what is causing problem?,,the rest of the day runs great

Asked by for the 2003 BMW 325i
Have your heated oxygen sensors and coolant temp sensors tested. They may be lazy or malfuntioning causing the lean condition cold.
Thanks I will have it checked