Those appear to be 12volt or 24 volt solenoid values, so no way they wire directly to an arduino board. So to do what you wish you need a schematic drawing of what you have presently and a copy of the sketch code used. Little help available if you can't supply either.