To connect devices to provide sensors/input to opencpn, it might often be required to understand pinouts of connectors and cables to connect to your boat's system.
I found a great website witch might be helpful connecting your devices: https://allpinouts.org