A way to apply the output of certain sensors to a TTL/CMOS-level iput on a microcontroller. Sensor must have an NPN output stage that can support a pullup to its power rail. With just a few components ...