The default timeout for pulseIn() is one second. Could your other inputs not be pulsing?
You should set the timeout to a little greater then your expected pulse interval. My guess would be 30 milliseconds (30,000 microseconds).
The default timeout for pulseIn() is one second. Could your other inputs not be pulsing?
You should set the timeout to a little greater then your expected pulse interval. My guess would be 30 milliseconds (30,000 microseconds).