This is the setup function where the serial port is initialised attachInterrupt(0, rpm, RISING);
and the interrupt is attached
the loop() method runs over and over again // as long as the Arduino has power
RISING: The current changes from off to on at 5 V.