Speed Calculator Project Help

Probably should comment better in my code, but as I stated above I am using one analog PIR sensor and one digital PIR sensor. That's the reason I have pinMode(A0, INPUT) and pinMode(digitalPin, INPUT). Two different sensors.

I solved my initial problem for now however my digital sensor is not detecting motion fast enough as it takes several hand waves to get anything to show up in my original code, which is concerning when trying to create a speed calculator.

I am thinking the sensor goes HIGH initial then bounces back and forth between HIGH and LOW for some milliseconds causing some trouble. I am going to try to create some code to ignore any switches from HIGH to LOW less than a certain amount of time.

Any rhyme or reason why my digital sensor isn't picking up that motion sooner? The sensor itself is OPEN when not detecting so I have a 10K pulldown resistor from output to GND to make sure it sees GND. I am using only the arduino's 5V supply to power and GND in my circuit and sensors.

Thanks