A leaky mass airflow sensor or it can be a leak in the air intake hose.
Chances are its a bad throttle position sensor or mass airflow sensor.To check the mass airflow sensor simply unplug it & run the car if it acts the same then probably the tps.
Trouble code P0102 means: MAF Sensor Circuit Low Input Replace the Mass Air Flow Sensor
go to autozone for a free diagnostic check & the computer will tell you what is wrong ie map sensor. idel air control . mass airflow sensor
I have a 96, it is best to get new one they're only around $50.
There are several reasons why your car is experiencing this problem, I could be a bad mass airflow sensor, bad DME, clogged catalytic converter, bad fuel pressure regulator, or bad fuel pump. Each if these would take a bit of explanation. I'd recommend that you buy a Bentley manual for this vehicle, and follow the diagnostics for each of these possibilities.
I think I have to do the same thing on my 02 Taurus. I know that the Mass Airflow sensor is located on the air filter assembly. The fix seems simple enough. I can send you pics of the part if needed. Just curious, what are your symptoms? Sluggish performance? Stalling?
Outside temperature sensor either unplugged or broken. Do an internet search for the sensor using the specifics of your vehicle (ie 2003 BMW 330i outside temperature sensor). You will find replacement parts and diagrams of how to fix this yourself.
how to fix belt in BMW 320d
mass air flow sensor
replace mass air sensor
Normally it is the left rear ABS sensor, if that does not fix it then it might be the ABS module. Look around in the BMW forums on how to the sensors with and ohm meter