4-pin relay, like the one used in the XM-18 incubator controller, acts as an electrical switch that controls a high-power circuit using a low-power signal. This allows a small current to safely switch a larger current, protecting sensitive components and enabling automated or remote control of devices. In the XM-18, it likely controls the heating element or other high-current components based on the temperature and humidity sensors.