Help with touch zero on Due board

I just recently got my M2 up and running and can already see the benefit of automating z-axis zeroing. Would also love to be able to switch a relay to power on my router and vac. Trouble is I’m not sure where to connect the wires to the Due board included in the kit. I’ve read every post I can find but they all reference the old board.