After weeks of driving, I now became more familiar with the car, and one thing that I noticed was its RPM was unstable.
The Mass Air Flow Sensor is located in under your Mazda's hood, just in between the air intake hose and the air filter casing. You may notice that there are wire connectors attached to this. This is one of the many sensors your engine uses to achieve optimum performance. Its funtion is to send information to the Engine Control Unit (ECU) regarding the amount of air mass entering the engine.
I had a mechanic check my car and his first reaction was that the sensor needed to be replaced. I asked him how much it would cost. He told me it was around P3,000. If it was true, then it's a quite expensive part, so I decided to see if we could do anything else. The mechanic tried moving the air filter casing, and he noticed that the RPM fluctuated by doing that. That should not happen. With our new observation, we both agreed that there was something loose. Next, he pushed on the wire connectors in the Mass Air Flow Sensor and asked me to push on the gas pedal and check the RPM. The result? Even after pushing the pedal, the RPM now settles back at its starting value. Sucess! We fixed it.
So it seemed the connector was just loose. I drove the car for a week with no problems. But soon after that, my RPM woes were back. My car'r RPM was fluctuating again. I needed to find a more permanent fix.
I was convinced there was nothing wrong with the sensor. If there was, pushing the wire connector wouldn't have lead to a significant improvement in the idling RPM stability. So one day, when I got home after driving, I detached the connector and cleaned the metal electrodes. I sprayed them with a good quality contact cleaner. I got back to the driver's seat, rev-ed up the gas and check the RPM again. COOL! No more of the unstable RPM's!
My final conclusion: the dirt in the metal electrodes of the Mass Air Flow sensor was interfering with the quality of the electrical signals coming out of the it, and it was causing errors. The ECU was getting the wrong information. If you're a Mazda 323 owner, and you're having idling problems, it might be worth doing what I did. It's going to save you some cash. But again, the engine is a complex system, and your RPM can be affected by a lot of other parts not working well. If doing this does not work for you, trying checking other parts.