Here as some simple component additions which may improve the operation of your wings circuitry - see attachment 1. The capacitor C1 - top right red bubble - is to provide some low pass filtering for frequencies above 50Hz. Try C = 0.03uF or thereabouts. At 50Hz its reactance is about 100kOhms so negligible when compared with the 11k (between the 2N2007 source and 0V) across it; at 1000Hz its reactance is 1800 Ohms so lower than the 11k across it. With increasing frequency the 11K will be bypassed.
The other thing you could do which would please me too is physically separate the mains relay from the low voltage circuitry and introduce an optocoupler - something like the circuit I have sketched in my second attachment. The 10uF across the photodiode in the optocoupler is to short out any 50Hz pick up signal appearing between the signal S and 0V. The 500uF does the same for any pick up between 0V and 5V leads to this circuit. Then put the circuit inside a plastic box with the mains going in one end and the low voltage wires into the other rather like what I did with the white oblong connector.

The other thing you could do which would please me too is physically separate the mains relay from the low voltage circuitry and introduce an optocoupler - something like the circuit I have sketched in my second attachment. The 10uF across the photodiode in the optocoupler is to short out any 50Hz pick up signal appearing between the signal S and 0V. The 500uF does the same for any pick up between 0V and 5V leads to this circuit. Then put the circuit inside a plastic box with the mains going in one end and the low voltage wires into the other rather like what I did with the white oblong connector.

