Help with tachometer code

Even after that still doding the same thing, Im thinking the arduino might not be the best way to read this. Might be better to go with a freq to voltage converter.