سلام
من تابع micros نمیفهمم چظوری سرعت حساب میکنه
if(digitalRead(2); == HIGH ) // If input only changes from LOW to HIGH
MIN = ( micros() - ZAMAN ); // Time difference between revolution in microsecond
rpm = (60000000/MIN); // rpm = (1/ time millis)*1000*1000*60;
ZAMAN = micros(); // store time for nect revolution calculation