Help with RPM code

The photo transistor outputs about 7mA without the 10kohm resitor. I assume with the resistor connected in series it would output even less.

I remember testing it like so but the arduino did not detect a change on the pin.

What current is required for the arduino digital inputs? Can't seem to find that on the site.