sending output to trigger relay on interrupt.