Control a solenoid with Genuino MKR1000

Hey everyone, I'm setting up a backyard vegetables garden and I would like to be automated.

About me
While I know various programming languages, my electronic skills suck - just to know what can you expect from me.

The project
I have a Genuino MKR1000 and I would like to use it as follows:
Attach a soil humidity sensor to it. Once an hour will read the soil humidity. If the humidity goes below a certain threshold, it will open the solenoid valve from a water container, basically starting the irrigation.

Now and then I will check visually (with an IP camera) the water level in the container and if the water reaches a certain level, I will click on an app to start the water pump and fill the container.

The problems
The solenoid valve should be powered with 24V and 0.34A.
I don't know how to control this with the help of MKR1000.

Second, I need to control the water pump, which is connected to a regular 220V outlet. I don't know how to do this with the help of MKR1000.

My ideas
The solenoid valve doesn't have power supply, except for the wires, so I'd buy a power supply.
I wonder if is possible to use a solid state relay to start/stop the solenoid valve.

I've seen that there are solid state relays with two entries - for two devices.
Is this feasible?
This is the solid state relay I found appropriate.
The technical details are on the bottom of that page, in English.

So, the question is: am I heading in the right direction?
If not, what should I do?

What is the MKR1000 output pin voltage and current capability?

george_i:
The problems
The solenoid valve should be powered with 24V and 0.34A.
I don't know how to control this with the help of MKR1000.

Second, I need to control the water pump, which is connected to a regular 220V outlet. I don't know how to do this with the help of MKR1000.

in a project where i have to control several electric devices i use this : https://www.dertronics.nl/velleman-io-for-VMA436.html - works great, with a very simple code.

george_i:
I've seen that there are solid state relays with two entries - for two devices.
Is this feasible?
This is the solid state relay I found appropriate.
The technical details are on the bottom of that page, in English.

Most solid state relays are for AC (they don't turn off with DC).
And did you see the minimum operating voltage (75volt AC) of that module?

Just use a logic level mosfet to switch that solenoid (assuming a 24volt DC supply).
Use one that is specified tor 3.3volt logic.
Use the first diagram on this page.
Leo..

Thanks everyone for answers.
I also found a relay module, as Sylvain suggested to.

I chose a module with two channels for this project.

There are concerns that MKR1000 has 3.3V output and is a big below the necessary.

http://modtronix.com/mod-rly2-5v.html

You have not said what the pump current / power requirements are.

JCA79B:
You have not said what the pump current / power requirements are.

The pump is currently plugged in a regular 220V outlet. I don't have other information yet.

For this project I need to connect a soil sensor at 20 meters distance from MKR1000.
Is there a certain cable which is required?