Digital Tachometer for car

The diode should be between the Arduino pin and everything else.