IoT Push Notification Using Rain Sensor with MicroBit

So many useful applications can be done with the rain/water sensor, in this tutorial, you will learn how to use both of rain sensor and the wifi module to send push notifications to your telegram app 💦🚨

Video Tutorial

Components Required

Connection

1 (1)

By following the diagram above:

  • Connect the grove wifi module to P15 and P16
  • Connect the rain sensor to P0

Code

microbit screenshot
Now, connect your REKA:BIT to your device and open MakeCode editor to start programming.

  • Add “ESP8266 Cytron” extension and follow the code block in the picture above
  • Follow the steps here to create a Telegram bot. Get the API key of the Telegram bot and the chat ID.
    If you want to learn more on how to send messages to Telegram, please check the video tutorial here
  • After completing the code, download it on microbit

You can also view and edit the code by clicking here!

Project Complete

6

Upon completing the project successfully, you shall receive a message notification on your Telegram application when the rain sensor gets wet.

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

Icon Case with Heatsinks & Fan Stressberry Test
Low Profile Aluminum Case Stressberry Test
Stressberry Test on Raspberry Pi 4
K-Type Thermocouple With Maker UnoX And Blynk
Real-Time IoT Room Monitoring on Maker Pi Pico Using pyRTOS
Tutorials of Cytron Technologies Scroll to Top