I would like to suggest changing the operation of pulseIn() to just count pulses...... pulseIn(Input, HIGH or Low, DINT) this allows pulse counting on the state changing either high or low and incorporates a large counter.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16