Relay does not switch off although Arduino sends the signal

Please post your code and a schematic of your project

The easier you make it to read and copy the code the more likely it is that you will get help

Please follow the advice given in the link below when posting code