Appears to be a quad comparator (339?) with four adjustment pots and four emitter/receiver pairs which can be snapped apart. I'm thinking this may be good for several applications besides line sensing, even simple proximity sensing too. Heck, that ribbon cable alone is worth $2. Will advise when mine comes in.