I don't understand the problem

does the socket "water 1" switch on and off accordingly to the position of the floater (with a delay of 5s)?