Hi there,
Can you post the code you are using ? and a pic if you have (enough forum credz, takes a few reply’s) , btw Use the code tags above “</>” paste it in there. Sounds like you have it correct… Hmmm.
What is the relay side connected like?
You’ll get it, your close.
HTH
GL PJ