Omron 24v coil relay

I am going to assume you are using an external power supply. DVDoug schematic is great and will work without a problem. You need to connect the boost converter to the 5V power supply not the Arduino 5V pin. Connect the ground - output of the boost converter to the 5V ground the +24 as show in the schematic.

This schematic is different then the ones you generally find on the internet, but it is the correct one, most of the others are wrong where they connect R2 to the gate pin. It needs to be connected to the Arduino port pin. Connecting to the gate forms a voltage divider. R2s main purpose is to be sure the MOSFET is off from reset until you set its output.