I am using arduino nano GPIOs to switch multiple devices (16 devices) using MOSFET (IRF540N).
I have configured my switching circuit in such a way that my device will remain ON even if even if high signal is not given to but to switch off those devices nano needs to give LOW signal (I have implemented this circuit using resistor divider).
My requirement is to keep the devices on even if nano is not powered which is been achieved only when one device is connected but 2 or more devices are connected then devices are switched off.
I am also isolating the GNDs of nano and devices using relay.
Still my devices are getting Off when multiple devices are connected? Is it because of even if both the GNDs are isolated some amount of current flowing via nano controller internally?
Is there any other solution to achieve the same?

