Digitalpin of farmduino

I have a Farmduino,
Now I want to use extra pins for relays, motors and sensors.
The important thing is controling relays.
Please let me know how to do that…

Here is a documentation page briefly describing how you can use a relay with your Farmduino: