Revert "Removing old opto and modifying for 1.2"

This reverts commit c1cb9cd8648fcaea7ae1003835fe7706e486bb6a.
Moving opto to opto_read