Skip to main content

Moisture Sensor Notifications

Moisture Sensor Project with GrovePi and Hologram Nova


This project uses the Grove Moisture Sensor that can be used to detect the moisture of the soil or there exists water around the sensor.

The sensor can just simply be inserted into the a plant’s soil and measure the moisture in the soil. Based on the data, it is possible to determine if the soil is humid or dry and it can send a notification ‘Feed me some water’ to the owner of the plant.

This project shows how to use a cellular modem purpose built for IoT development from Hologram to send alerts/notifications.

Things used in this project:

Things used in this project:

Hardware components:

Software Apps:

  • GrovePi 
  • Python
  • Hologram CLI

Grove Moisture Sensor measures soil moisture based on soil resistivity. It has the following specifications to determine if the soil is dry of humid based on the sensor output value.

Output Value
Sensor in dry soil
Sensor in humid soil
Sensor in water
0
300
700
-
300
700
950

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

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





The following program (moisture_sensor.py) checks the moisture sensor output sends notifications using Hologram.

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

import time
import grovepi
from Hologram.HologramCloud import HologramCloud

# Provide Hologram device key
credentials = {'devicekey': 'XXXXXX'}
hologram = HologramCloud(credentials, network='cellular')

# Connect the Grove Moisture Sensor to analog port A0
# SIG,NC,VCC,GND
sensor = 0

while True:
    try:
        if ( grovepi.analogRead(sensor) < 18):
          response_code = hologram.sendMessage("Feed me some water")
          time.sleep(20)
        time.sleep(1)

    except KeyboardInterrupt:
        break
    except IOError:
        print ("Error")

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

Comments

  1. With widespread availability, reasonable prices, and a satisfaction guarantee, Ace Handyman offers customers a high level of confidence and consistency on a variety of handyman services. handyman in Manchester

    ReplyDelete
  2. This blog is really helpful to deliver updated affairs over internet which is really appraisable. handyman services ottawa

    ReplyDelete
  3. Enjoyed reading the above article, in fact everything is explained here, the article is very interesting and effective. Thanks, and good luck for the upcoming articles. inventory management software

    ReplyDelete
  4. Label printers are devices or machines designed to print labels, which are adhesive-backed pieces of paper or other materials used for various purposes, including product labeling, shipping, barcoding, and organization. label printers near me

    ReplyDelete

Post a Comment

Popular posts from this blog

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: Raspberry Pi Zero W or WH GrovePi Zero  Grove Water Sensor Grove LCD RGB Backlight Hologram SIM 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/...

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...