Your relay driver may as well control the solenoid directly,..
I want to push a button while the solenoid valve at open position and when the container filled 6kg Arduino will close the valve.
Why push a button to enable closing the valve… wouldn’t it be better to ‘press to open’, then let the arduino weigh the load, and close the valve at the right moment ? — basically an automatic filler ?