Relay auto trigger issue

The relay is attached but after a while it triggers its auto I do not want it how can i solve

when does it happens?

for example after 10 seconds the old position

can you post the code…

I do not have the code I connect with rpi3 I use cayanne