Made a Water Leak Sensor

There was some brief discussion in this thread about this topic. I tried it and it didn’t work for me unless I did something wrong. There was something mentioned that this ability had to be enabled in code somehow.