Wire an APM to the IoT Gateway Wire terminal SP1 of the APM to the DI1 terminal of the IoT Gateway Wire terminal SP2 of the APM to the AI1 terminal of the IoT Gateway Wire terminal COM of the APM to any COM terminal of the IoT Gateway