Rpm counter IR tachometer - Help needed

A few comments....

  1. it looks like this is posted twice....the moderators will not be happy with double posting :cold_sweat:
  2. Its not clear the magnitude of RPM you are measuring.
  3. Is it worth using microseconds vs millis for better accuracy
  4. It may be worth disabling interrupts for longer, in case you are getting multiple interrupts at the same time (de-bounce)
  5. you are likely to get some interference from ambient light if the sensor is not physically shielded
  6. probab;y a good idea to mention the model numbers of the LEDs
  7. It appears your input is analog and you are feeding this into a digital interrupt pin....not surprising you would get varying results?

etc.....