I want to control some 12 v Relays with the UNO.

Always supply us with:

Show us a good schematic & image of your circuit wiring.
Posting images:
http://forum.arduino.cc/index.php?topic=519037.0

Use CTRL T to format your complete code.
Attach your sketch between code tags
[code]Paste your sketch here[/code]