Arduino code for a conversion of a 1971 Honda CB tachometer to digital input