This project uses an ESP8266 and an analog Capacitive Soil Sensor to alert a user of it's plant health
This repo uses the universal-telegram-bot-library as a basis for sending messages using a Telegram Bot, need to have that installed first.
Also a Telegram Bot is needed, for that we use Telegram and by messaging BotFather with the /newbot
command. From there we can name our bot and add a profile picture for it. After that BotFather will give us the Access Token for that Bot in the following form XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
. Take note of it and do not share it with anyone.
For our own Telegram user we need to grab our ID, and for that we message UserInfoBot with the /start
command. Save the 9-Digit ID for later
graph TD;
A[Start] --> B(Connect To WiFi, configure and send startup alert)
B --> C{Soil Hum Level}
C -->|hum < 600| D[Too much water notification]
C -->|700 < hum < 900| E[Normal humidity level notification]
C -->|hum > 1000| F[Dehidration notification]