There is a posting of someone wanting to use IR detection and types.
Z Stuff, Lionel, MTH etc do not tell how their detectors work ie pulsed LEDs, steady beam. They all seem to have sensitity controls which means it is adjusting sensor analog output but sensor still suffers from big ambient light changes.
If i were designing a sensor I would do pulse emitter. My way would be turn on LED and sensor for an interval then off. Read sensor analog value, convert to digital value and store. Repeat cycle and over period of time obtain a baseline value average which would include the ambient lighting, or a traveling average. If the value suddenly dropped below my average after so many blinks, then I assume path is blocked and trip output. Now my baseline average falls to some value around ambient lighting value. When value suddenly jumps after so many blinks then I assume path has cleared and open output.
Are any vendors doing just this? I am thinking of using some IRs at several places but reading posts seems none really are reliable under all conditions.
Would be interested in discussing this topic technically.