Also, how is the relay wired up?
This is the right type of relay to use with Arduino because it is optically isolated and only draws a couple of mA from the output pin. Often times people get confused about the wiring of the relay itself though.
Please provide schematic of the Arduino and relay. Check that the relay modual GND is connected to Arduino GND.
Can you please tell us your electronics, programming, arduino, hardware experience?
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting can result in a suspension from the forum.
In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.