hi guys i'm new to arduino projects i have an relay to make my solenoid valve on and off with a given period of time but every time i connect it to my solenoid valve to my relay it automatically opens it's just like it's bypassing the relay, the relay works fine in with the set time but i didnt turn on or off my solenoid valve any help is much appricated i'm using arduino mega 2560 and this is my code
thesisbackup.ino (9.32 KB)