Hi
I need to control a window motor with a relay; because the motor is powered by 24V, the first though was that I need a 24V relay, so I bought one.
1. And I bought the relay from image1
It works independently, without arduino. The problem I'm seeing is if the sensor detects the rain it starts the motor, and the motor will be under load until the rain stops, which is not OK.

2. There is another relay (which I don't have) which has 3 pins VCC, GND si IN; sensor detects rain, tells to nodeMCU, and the board sends to IN pin the command to start the motor, and after (let's say) 30 sec I can send a command to stop the motor, so the motor will be not under permanent load.

3. So, I have the 1st relay; can be used this relay to adapt the circuit from 2?
Question: can be made the circuit sensor - arduino - relay from 1. so the sensor detects rain, tells arduino and then the board commands the relay?
The issue is that in this case we have 2 relay pins (where the sensor was firstly linked) which must be used to make the connection arduino-relay. Can we use those 2 pins or just 1 to connect them?
In circuit 2. we had only 1 pin - IN - and not 2.
Can this be done?

Thank you
I need to control a window motor with a relay; because the motor is powered by 24V, the first though was that I need a 24V relay, so I bought one.
1. And I bought the relay from image1
It works independently, without arduino. The problem I'm seeing is if the sensor detects the rain it starts the motor, and the motor will be under load until the rain stops, which is not OK.

2. There is another relay (which I don't have) which has 3 pins VCC, GND si IN; sensor detects rain, tells to nodeMCU, and the board sends to IN pin the command to start the motor, and after (let's say) 30 sec I can send a command to stop the motor, so the motor will be not under permanent load.

3. So, I have the 1st relay; can be used this relay to adapt the circuit from 2?
Question: can be made the circuit sensor - arduino - relay from 1. so the sensor detects rain, tells arduino and then the board commands the relay?
The issue is that in this case we have 2 relay pins (where the sensor was firstly linked) which must be used to make the connection arduino-relay. Can we use those 2 pins or just 1 to connect them?
In circuit 2. we had only 1 pin - IN - and not 2.
Can this be done?

Thank you
