A long, long, time ago I used to.work for a part of Lucas Industries that researche and made optical sensors. Some were very clever, some were very good. But I was left with the opinion that if there is ever a straight choice between optical and electrical sensors, the latter will be simpler, more effective, more efficient, and more reliable.