Well spotted Alastair. I agree with your technical observation, the drawing of the transistor is wrong. In fact BC547 is an NPN transistor. So when the IN from the NVR is high, the optoisolator out is high, the BC547 base is high and the relay is energised and the LED2 lights. When the IN from...