With the WiFi functionality using a Particle Photon, a message is triggered on the Particle console in case one of the two (self-made) sensors triggers. If the trigger is set, the free service accesses the information and is then configured within the IFTTT service via the applet so that a signaling (SMS/E-Mail) is triggered on the smartphone of the homeowner.
So he is also mobile about leaks in the drainage basement informed and is able to act.
The special are the sensor ends: these are made of non-latching stainless steel and have been left over by a welder technician. Of course, the cheap and well-known models are suitable, but these often rust too quickly and are therefore unusable.
In our case, the location of the water contact sensor should be as low as possible.
So we decided to replace the standard sensor with two stainless steel rods. We have cut them to the desired length on site and attached them to the water-carrying pipe with silicone.
We have continued to use the "5STK Soil Moisture Module" via Digital 0 (D0).Suffice it to determine whether the circuit of the two stainless steel sensors is closed by the flowing water (water conducts electricity) or not.
An auxiliary variable merely checks for the first closed contact and issues a console message via the particle.publish command.
Particle.publish("myWaterWarner", "Wasseraustritt am Rohr", PRIVATE);
bool firstfire_switch_Rohr = true; bool firstfire_switch_Becken = true;
If I did not use the auxiliary variable, a large number of triggers would be triggered if the contact was still closed. One is enough.
Because it worked so well, we connected 2 sensors to the Photon. Remember to create an IFTTT applet for each individual. The console message is output differently so that it can be uniquely assigned to the sensor.
Otherwise, I do not go into detail on IFTTT: it is largely self-explanatory.
Hopefully there will be no alarm and the feet stay dry.
You can find similar projects with plants here.