This project utilizes NodeMCU V.2 programmed with Arduino IDE to detect rainfall using Rain Sensor Modules and send notification messages via the LINE API when it's raining.
- NodeMCU V.2
- Rain Sensor Modules
- Female-to-Female Jumper Wires (20CM)
- Shield Nodemcu AB-Maker V1.3 For Nodemcu Esp8266 V2
- Install the DHT library and LINE Notify library in the Arduino IDE.
- Connect the Rain Sensor Modules to the NodeMCU V.2 as per the instructions provided in the code.
- Install the LINE application and subscribe to LINE Notify.
- Visit the LINE Notify webpage https://notify-bot.line.me/th/ to obtain the access token for sending notification messages via LINE.
- Replace the placeholder in the code with the received access token.
- Upload the code to the NodeMCU V.2.
- Power up the sensor and connect to the internet.
When the sensor detects rainfall, it sends data to the NodeMCU V.2, which in turn sends notification messages via LINE Notify.