Simple sensor

Your language translation is difficult to understand so i don't know what your trying to do

in one part you want to turn on something and in the next you want it off?

this is bad practice! something has to be master and not an "on but no now off" situation

could you try to explain again because i can't make sense of it