Drain pipe to the septic tank clogged? IoT to the rescue!

Toopy14

Axe-Master
You know how they say, 'necessity is the mother of all invention'. Well, let's just say water coming out of the recessed light holes in the 'new' basement laundry room ceiling over the weekend reminded me of that...among other things.

After I finished saying several choice words, I popped the lid on the septic tank and unglogged the ABS pipe. We cleaned up the water and dried the room with a dehumidifer. Thankfully, the recessed light holes acted as drains, which likely kept the ceiling from collapsing and there was a drain in the basement floor that is attached to the weepers.

I started looking for a backup warning solution and although there are a few for minmum $150 USD, I came across this little sensor, for about $15 CDN on Amazon;

"XKC-Y25-NPN Waterproof Non-Contact Liquid Level Sensor Switch Signal Output DC 5-12V"



After I watched the video, I thought what the heck, for that price I'll get two and see if they can detect water through the wall of a 1/4" ABS pipe. The specs. said it can detect liquid through a material thickness of about 1/2". I received the sensors yesterday, connected one to the power of a 3.3 V PIC-WEB microcontroller to turn an LED on if the sensor detected water. Tried it with a glass of water, it worked as advertised. Tried it with a section of ABS pipe...it worked! So now I have a switch that can detect rising water in the ABS pipe.

Then I wrote a bit of C code, modified some HTML and Javascript to update an XML file and web page in real-time on the PIC-WEB, wrote a rule in openHAB running on a Raspberry Pi to read the logic of the sensor connected to the PIC-WEB and configured openHAB to use Sendmail to send SMS alerts via Yahoo's SMTP server, to everyone in the household.

Here are the results in screen caps.

PIC-WEB



1676564799473.png

1676564723237.png

openHAB

1676564904613.png

1676564874283.png

SMS
1676565054868.png

I'll likely have openHAB flash some Wemo light or sound the security alarm. I may even look for a servo valve and have the PIC-WEB automatically shut off the water supply.

I'll use two sensors on the ABS pipe, just behind the wye on the cleanout. One wired to the PIC-WEB and the other running on battery connected to a piezo alarm, in case the power is off. Although, once the power is off, there is limited water in the supply line. However, I'm getting a back-up gen., so still need to monitor the sewer line with no power.

Fun little, non-guitar project!

My wife preferred the original message...

(BROWN ALERT SYSTEM) The SHIT pipe is blocked, stop using water IMMEDIATELY!

:)
 
Last edited:
Shit! Why didn't I think of that? :p


My wife preferred the original message...

(BROWN ALERT SYSTEM) The SHIT pipe is blocked, stop using water IMMEDIATELY!

Except in my experience when you tell the family to stop using the commode for a couple hours it triggers uncontrollable diarrhea, and everyone has to go... then they all deny.


 
Shit! Why didn't I think of that? :p




Except in my experience when you tell the family to stop using the commode for a couple hours it triggers uncontrollable diarrhea, and everyone has to go... then they all deny.



THANKFULLY...the room didn't look like that and there were no floaters!

 
Right about here is where I stop and pay someone else to do that thing. :D
Ya...but the sooner the better. The trick is to get the f' out of the way when the 'water' in about 30' of 4" pipe comes rushing down towards the T at the top of the tank and shoots up about 4'! lol
 
This is awesome, well played!

Closest I've come, which I bought rather than built, is some Govee bluetooth thermometers to warn me if the temp in the snake room or studio gets out of hand.
 
Back
Top Bottom