Pin 1-21
Pin 2- then optocupler then connect to pin 22