PulseSensor Countdown

So like PaulRB said, it depends on if the sensor output will be high enough to register a HIGH and low enough to register a LOW.

I think i already know the answer but i guess in the case that the jump between voltages isn't big enough i'd have to write some new script? Or could i use an analog to digital converter?