Skip to main content

A sump pit monitoring system for Raspberry Pi

Project description


Many changes to this new version. You will need to add variables to your raspisump.conf file. Copy the new conf file located in the /home/pi/raspi-sump/conf folder to /home/pi/raspi-sump. Re-enter all of your variables. Older info has been saved in /home/pi/raspi-sump/

The choice of Imperial or Metric measurements have been added to 0.6.0. Also some variables in the conf file were confusing so I have made changes to this file including better comments to explain each variable.

Simply upgrading to v0.6.0 will break your current install of Raspi-Sump unless you take some time to fix your configuration file.

I recommend you keep using v0.5.3 if you don’t want to do this.

To roll back to v0.5.3 simply do the following;

sudo pip uninstall raspisump sudo pip install


Install the pip package manager (if not present on your pi) at;

Install Raspi-Sump.

sudo pip install raspisump

Upgrading an existing version

sudo pip install -U raspisump

This will also install the [HCSR04sensor]( and RPi.GPIO modules if not present on your Pi.

If you want to use charts install maplotlib and numpy

sudo apt-get install python-matplotlib

sudo apt-get install python-numpy

Read the configuration docs copied during setup on your pi at the following location;


They are also available on github


Raspi-sump is a sump pit water level monitoring system using a Raspberry Pi and an Ultrasonic Sensor (HC-SR04)

Currently the system monitors the water level in your pit at defined intervals. It sends email sms alerts if the water reaches a critical level, indicating a possible sump pump failure.

See the changelog for the latest features.

More Info

Further details provided at

An hourly updating graph is available for view.


You are welcome to use Raspi-Sump but there is no guarantee it will work. Your house may still flood if your sump pump fails. This software comes with no warranty. See License details.

This is not a replacement for remaining vigilant in maintaining your water pumping system. It is one tool you can use to give yourself extra piece-of-mind.

Best practices should also include:

  • A backup pump that triggers at a slightly higher water level than your main pump.

  • The secondary pump should be connected to a seperate dedicated electrical breaker.

  • You should also have a generator that can provide power should you have an extended outage during the spring or other unseasonally wet time of year.

  • if you are building a new home, pay attention to the grade of your property, as you may even be able to let gravity empty your pit for you. That would be the best approach with a backup pump just in case.

Once you have done all of these things, then consider using a monitoring system like Raspi-Sump.


MIT License. I want you to do whatever you want with Raspi-Sump. If you improve it please let me know.


If you add a useful feature please consider forking Raspi-Sump and contributing back by issuing a Pull Request. Use the devel branch for adding new features and if it works I will merge them into Master.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raspisump-0.6.0.tar.gz (14.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page