I am testing before connect the contacts to 230 V and the Red led of the relay is turned on when turn off pulse. I've modified slightly the code to reverse it and look good, but I had emerged it doubts the truth.
Ni kupima kabla ya kuunganisha mawasiliano kwa 230 V na nyekundu aliongoza ya relay ya ni akageuka juu wakati zima mpwito wa ateri.