Very easy put an LED and a photo diode or transistor in a bit of black tubing. How you choose your LED and receiver effects how the system works for your application.
PDF Downloads As a Pro member, you will gain access to download any Instructable in the PDF format.
You also have the ability to customize your PDF download.
Weber has a webpage describing how to do it (they sell kits for them).
http://preher-tech.com/Documents/opto-isolators.pdf