Hello,
Here a way to connect the IO of a hikvision ds-2cd2185fwd-is. It supports max 5V.
I had only 24VDC available, so these are the following components needed
1x Relais module: Input 5v to output AC 250 V & DC 30 => US $0.96 |Een 1 kanaals relais module 5V 12V 24V hoge en lage niveau...