Google these words:-
arduino connecting a relay
Lots of examples of how to do it right. Note you will need a diode across the relay.
Google these words:-
arduino connecting a relay
Lots of examples of how to do it right. Note you will need a diode across the relay.