My car cranks but won't start? - 1

My car has been stalling lately. It's not my battery. Sometimes it would happen when I was still. Then it started happening when I was driving and became a little scary. What always happened was that I would wait a few minutes and it would start up.
Today, it didn't turn on at all and just cranks. What could my problem be? I just changed an air filter in the front.

Added (1). It's a 2000 Honda.

@ Ellen, yes the lights come on.
The meter that your talking about, is it the handheld one that can tell any issues with the vehicle? Cuz my friend can probably get that to check my car, since it still won't start.

New car!

Ignition cylinder

Check all connections to the battery. Possibly a fuel issue

Sounds like you have alternator problems.

Do you know what kind of car it is?

Try putting a fuel stabilizers like seafoam

What year and model is your car? Is your idle low? In my g35 I had to change out crankshaft sensor having same problem as you. I also replaced 2 camshaft sensors.

If it's stalling while driving it sounds like the alternator. Do your dash lights all come on before it stalls while driving? If so that's classic alternator. That's easy to have checked and confirmed or ruled out with a meter.