1602 LCD and reading out RPM fan

  duration = (pulseIn(pin, HIGH) + pulseIn(pin, HIGH)) / 2;