Skip to main content

Water Leak Detection Notifications

Water Leak Detection Project with GrovePi  and Hologram Nova

This project uses the Grove water sensor that can detect water leaks, spills, floods, and rain. It also can send notifications using cellular network.

Things used in this project:

Hardware components:

Software Apps:

  • GrovePi 
  • Python
  • Hologram CLI
Water sensor module from Grove system provides  the ability to detect if there is any water leak by measuring conductivity. The water sensor traces have a weak pull-up resistor of 1 MĪ© and it pulls the sensor trace value high until a drop of water shorts the sensor trace to the grounded trace.

GrovePi Zero is a HAT from Dexter Industries  that allows Grove Water sensor to connect to Raspberry Pi zero with out needing soldering or breadboards. One can plug in the Grove water sensor start programming.

Grove water sensor works with digital I/O pins and it can be connected to D3 port Grove Pi Zero as shown below.
The installation instructions for Grove Pi zero and Hologram SIM are provided here .

The following program (water_sensor_led.py) checks the water sensor output sets the text on LCD.

First  a cellular connection is established using the credentials that uses a devicekey obtained from Hologram dashboard.

#!/usr/bin/env python

import time
import grovepi
from grove_rgb_lcd import *
from Hologram.HologramCloud import HologramCloud


# Establish a cellular connection
credentials = {'devicekey': 'xxxxxxxx'}
hologram = HologramCloud(credentials, network='cellular')

# Connect Water Sensor to Digital Port D3
water_sensor = 3

setRGB(0,255,0)

grovepi.pinMode(water_sensor,"INPUT")

while True:
    try:
        if (grovepi.digitalRead(water_sensor) == 0):

          response_code = hologram.sendMessage("Water Detected")
          setText_norefresh("Water Detected")
        else:
          setText_norefresh("No Water Found")

        time.sleep(10)

    except IOError:
        print ("Error Connecting Grove Components")


After execution of the above program, the status is displayed on the LCD.
 $ sudo python water_sensor_led.py














After reading the digital input from port D3 it determines if water is detected and displays the message on the LCD and it also sends notification using cellular network if there is a water leak.






Configure routes in Hologram dash board to send the notifications (e.g., SMS, email etc).




Comments

  1. Very informative article, Which you have shared here about the water leak detection. After reading your article I got very much information about the water leak detection instrument and it is very useful for us. I would like to thanks for sharing this article here. plumbing raleigh

    ReplyDelete
  2. I really appreciate this post thank you for sharing these type of posts. as we provide gas safe plumbers Northampton at affordable prices. for more info website.

    ReplyDelete
  3. I wanted to thank you for this excellent read. Thank you for taking time to know more about in this subject. Hire the experienced plumber gold coast at an affordable price, for more information visit waterlinkplumbing.com.au

    ReplyDelete
  4. This information is so useful and informative which you have shared here. It is beneficial for beginners to develop their knowledge. It is very gainful information. Thanks for share it. blocked toilet gold coast

    ReplyDelete
  5. It is very important to understand that plumbing services not only save water but also help to reduce health issues. Plumbing secures a valuable. iplumberpro.com

    ReplyDelete
  6. You have done good work by publishing this article here. I found this article too much informative, and also it is beneficial to enhance our knowledge.PE Gas Pipe USA. Grateful to you for sharing an article like this.

    ReplyDelete
  7. Whether you’re a homeowner, business owner, or property manager, at some point you will probably need to call a plumber. It’s a good idea to do find a good plumbing service. I recommend to use services from Magna Mechanical.

    ReplyDelete
  8. A corner jacuzzi bath saves bathroom space and provides generous space to bathe. The shape of this kind of bath is normally triangular, presenting you with a distinctive shape to fit into your bathroom.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. Plumbers Chula Vista is no longer a plumber that can help you install plumbing and gas fittings. Instead, you should give these contracts to experienced organizations that can do better than they can. People working with Plumbers Chula Vista ran into a problem.

    ReplyDelete
  11. Thank you for sharing good knowledge and information about thermostat suppliers in uae. It's very helpful and understanding. as we have been looking for this information for a long time.

    ReplyDelete
  12. Firstly, you will be familiar with the plumbers, their services and the way they interact with you. These factors are likely to put you at ease when it comes to your house's plumbing requirements plumbing services

    ReplyDelete
  13. You have provided valuable data for us. It is great and informative for everyone. Read more info about Valve For Sale Online Keep posting always. I am very thankful to you.

    ReplyDelete
  14. Lots of valuable data can be taken from your article about a mattress. I am happy that you have shared great info with us, It is a gainful article for us. Thankful to you for sharing an article like this.Dripping Shower Head Repair Western Australia

    ReplyDelete
  15. I think this is one of the most significant pieces of information about visitors Management System for me. And I'm glad to read your post. Thank you for sharing!

    ReplyDelete
  16. Laminate and vinyl floors set up may be quite clean to put in, relying upon the kind of floor merchandise you choose. They can be the right alternatives for those who select Dye tasks. Laminate Flooring Nashville

    ReplyDelete

Post a Comment

Popular posts from this blog

Temperature and Humidity Monitoring Notifications

Temperature and Humidity Monitoring Project with GrovePi and Hologram Nova A Temperature and Humidity Grove sensor is used in this project to measure relative humidity and temperature. It provides relative humidity measurement expressed as a percentage of the ration of moisture in the air to the maximum amount that can be held in the air at that temperature. The relative humidity changes with temperature as air becomes hotter and it holds more moisture. Things used in this project: Things used in this project: Hardware components: Raspberry Pi Zero  WH GrovePi Zero  Gove -Temperature and Humidity  Sensor Grove LCD RGB Backlight Hologram SIM Software Apps: GrovePi  Python Hologram CLI GrovePi Zero is a HAT from  Dexter Industries   that allows Grove PIR motion sensor to connect to Raspberry Pi zero with out needing soldering or breadboards. One can plug in the Grove water sensor start programming. Grove Temperature and Humid...

Raspberry Pi Setup for Voice Assistant Applications Using ChatGPT, Whisper API, gTTS and Pysstx3

  Raspberry Pi can be used for providing voice assistant capabilities by integrating with ChatGPT and Whisper APIs from OpenAI. This article shows how to set up the required libraries such as Chat GPT, Whisper API, Text-to-speech Pysttx3 etc., on Raspberry Pi for enabling voice  assistant  applications.   Hardware components Raspberry Pi Micro SD Card Power Supply USB Speaker USB Microphone Recommended for initial setup USB Mouse USB Keyboard HDMI Cable Monitor Software Apps: Python ChatGPT, Whisper, Speech Recognition, Pysttx3 libraries Raspberry pi operating system needs to be installed on a micro SD card before installing any ChatGPT based libraries. Raspberry Pi Imager running on another computer can be used to copy the operating system into the SD card.  Click on 'CHOOSE OS' button and select Raspberry Pi OS (64-bit) option and select 'WRITE' button to install the operating system on the SD card. After installing Raspberry pi os on SD card, it can be insert...