Controlling a relay

I just use a ULN2803A.

Very simple to install and it Isolates the board a little , so you can have 8 relays upto 50v.

My standard I buy in bulk item of the day !!!!