in principle Johnnycatt is right, but be careful with 5V vs. 3,3 V boards compatibility!
CONTROLLINO pinheader is 5V (as e.g. Arduino UNO or MEGA), but MKR is 3,3 V (as Zero, MKR, DUE …)
See the warning here.
Warning: Unlike most Arduino & Genuino boards, the MKR WAN 1300 runs at 3.3V. The maximum voltage that the I/O pins can tolerate is 3.3V. Applying voltages higher than 3.3V to any I/O pin could damage the board. While output to 5V digital devices is possible, bidirectional communication with 5V devices needs proper level shifting.