Basic Relay Circuit : Relays are switches that open and close circuits electromechanically or electronically. Relays control one electrical circuit…