I built this enclosure that has a pneumatically driven positive purge system. This purge system has a 24vDC switch that closes when my enclosure has a purge. I want to connect this switch to the incoming AC power. If I lose purge I want all my electronics turn off and vice versa. I was thinking I need a relay, but I am not sure what could do this. Thanks for all your help.