element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
In Reach! – Ultrasonic Sensor Sensing Challenge
  • Challenges & Projects
  • Design Challenges
  • In Reach! – Ultrasonic Sensor Sensing Challenge
  • More
  • Cancel
In Reach! – Ultrasonic Sensor Sensing Challenge
Forum Early Flood Warning and Monitoring System #2 - The Flow of Data
  • News
  • Forum
  • Projects
  • DC
  • Files
  • Members
  • More
  • Cancel
  • New
Join In Reach! – Ultrasonic Sensor Sensing Challenge to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 41 subscribers
  • Views 59 views
  • Users 0 members are here
  • design challenge
  • TDK waterproof sensors
  • Ultrasonic Sensor Sensing Challenge
  • flood warning system
Related

Early Flood Warning and Monitoring System #2 - The Flow of Data

sandeepdwivedi17
sandeepdwivedi17 9 days ago

Every good project needs a brain.
But the real magic? That’s in the flow — how information moves from sensors to the cloud and back.

This blog is all about that invisible choreography. The part you don’t really see but totally depends on.

Flow Chart of Early Flood Warning Sytem

Working of my Project

Let’s break it down.
Imagine water rising in a river.
Here’s what happens, step by step, inside my setup:

  1. TDK Ultrasonic Sensors measure water level distance from Sensor which is placed at Danger line marking.
  2. Arduino will Connect to wifi. If not connected it will keep trying until its connected.
  3. Once wifi connected it will fetch the google sheet Named “TDK-MKR-Logger’ tab “ConfigDetails”
  4. From there it will fetch the THRESHOLD_VALUE and POST_INTERVAL_MS parameter
  5. THRESHOLD_VALUE will define the alarming water level to send upcoming flood alert
  6. POST_INTERVAL_MS will tell the frequency of distance measurement i.e. interval after which distance is measured
  7.  Arduino will keep measureing distance of water level from Danger mark at fixed time interval (POST_INTERVAL_MS ) from TKD Sensors. It packages that info into a neat little JSON payload .
  8.  Then send this distance to Google sheet. payload is sent via HTTPS POST to my Google Apps Script Web App . The script logs it in Google Sheets under the “DataLog” tab.
  9. When distance from water level is received by google sheet it will check if Distance is less than threshold ?
    if yes then it will send alert to Predefined Email addresses stored in “Email_list” Tab in sheet.
  10. I keep configuration in google sheet so that in case if you want to change the threshold level or frequency of measurement taken , yoou don’t need to go to riverbed or waterbody and take Arduino out of box and reprogram it. Just simply change configuration details in google sheet and it will work . no need to reprogram Arduino for each time we change Flood parameters Configuration.

The System at a glance

So when the water rises, this happens in about 3–4 seconds:

  1. Sensor sees distance drop
  2. Arduino detects it’s below threshold
  3. JSON sent to script
  4. Sheet updates
  5. Email alert sent
  6. Arduino confirms

From splash to inbox — all automated.

Why This Flow Works

It’s modular, lightweight, and transparent.

  • Change the cloud? Just update the endpoint URL.
  • Change sensors? Code barely changes.
  • No complex cloud subscription, no hidden dependencies.
  • Can be created multiple such small packets of devices at different places of the water body or river with unique names so can be get more clear picture of flood estimation

It’s simple enough for DIYers, yet structured enough for scaling. But for now we will be focused only on our useful tiny Project.

  • Sign in to reply
  • Cancel

Top Replies

  • beacon_dave
    beacon_dave 9 days ago +1
    sandeepdwivedi17 said: TDK Ultrasonic Sensors measure water level distance from Sensor which is placed at Danger line marking. You may want to place the sensor at some distance above the 'danger line…
  • sandeepdwivedi17
    sandeepdwivedi17 9 days ago in reply to beacon_dave +1
    I will Follow your suggestion in my project. Thanks for this useful advice.
Parents
  • beacon_dave
    beacon_dave 9 days ago
    sandeepdwivedi17 said:
    TDK Ultrasonic Sensors measure water level distance from Sensor which is placed at Danger line marking.

    You may want to place the sensor at some distance above the 'danger line marking' as the rising water level could continue to rise well above this. Unless you are on flat land then the danger line marking is probably going to be based upon the lowest and first to be affected by rising water levels, which could be significantly different from the highest and last to be affected.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • sandeepdwivedi17
    sandeepdwivedi17 9 days ago in reply to beacon_dave

    I will Follow your suggestion in my project. Thanks for this useful advice.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • sandeepdwivedi17
    sandeepdwivedi17 9 days ago in reply to beacon_dave

    I will Follow your suggestion in my project. Thanks for this useful advice.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube