I have a 14M running a controller for opening a gate. I would like to use a ricoh camera infrared remote controller to activate the gate. The controller emits a single solid pulse of about 0.5 sec. Using readadc and activating when the value is less than 50 works well. However, I need to be able...