Run away relays when external power applied

Does anyone have an 8_Channel_Rely Sketch that I could try?