John,
Is this the opto-isolator?
https://produto.mercadolivre.com.br/...ento-otico-_JM
https://produto.mercadolivre.com.br/...-raspberry-_JM
Here the breakout board. If a decide to use this, is easy to connect the wires etc And how to connect.
https://produto.mercadolivre.com.br/...tico-mach3-_JM