Smart Plant Monitoring

by aunibalqis88 in Circuits > Arduino

213 Views, 0 Favorites, 0 Comments

Smart Plant Monitoring

project_iot.jpg
SMART PLANT MONITORING

Have ever heard about Smart Plant Monitoring using telegram ? This system can help people who are busy working to monitor their plant using mobile phones although they are far away from home. They will get some notification from the telegram on their mobile phones, about the condition of the plant such as the temperature, humidity around the plant, the presence of light and moisture of the soil. In this system, we use NodeMCU (ESP8266) as open source to link items and transport data using the Wi-Fi protocol, temperature and humidity sensor, soil moisture sensor and ldr sensor. So, if the plant in not good condition whether the temperature was too high, humidity was too low the user will get the notification from the bot in telegram.


Here's a video walkthrough of the construction process:

Supplies

component1.jpg

1.NodeMCU esp8266

2.Small Breadboard

3.Jumper Wire Male to Male

4.Jumper Wire Female to Male

5.USB Cable

6.Adjustable Soil Moisture Sensor

7.DHT22 Temperature & Humidity Sensor

8.GL55 LDR Photoresistor Light Dependent Resistor Sensor


Setup Circuit

sketch.JPG
  1. Attach the NodeMcu (ESP8266) to breadboard.

2.One jumper wire male to male connect to 3v3 from NodeMcu (ESP8266) and connect to positive line in breadboard.

3.One jumper wire male to male connect to GND from NodeMcu (ESP8266) and connect to negative line in breadboard.

4.Connect the dht22 to pin NodeMcu (ESP8266)

4.1 One jumper from dht22 connect to D2 in NodeMcu (ESP8266)

4.2 One jumper from dht22 connect to positive line in breadboard

4.3 One jumper from dht22 connect to ground line in breadboard

5.Connect LDR (Light Dependent Resistor) to pin NodeMcu (ESP8266)

5.1 One jumper from GL55 LDR connect to resistor and pick another jumper connect to A0 in NodeMcu(ESP8266) and the resistor.

5.2 One jumper from GL55 LDR connect to positive line in breadboard

5.3 One jumper from GL55 LDR connect to ground line in breadboard

6.Connect soil moisture sensor to pin NodeMcu (ESP8266)

6.1 One jumper from soil moisture sensor connect to D1 in NodeMcu (ESP8266)

6.2 One jumper from soil moisture sensor connect to positive line in breadboard

6.3 One jumper from soil moisture sensor connect to ground line in breadboard

7.Connect LED to breadboard using NodeMcu (ESP8266) pin

7.1 Connect cathode from LED to ground line in breadboard

7.2 Connect anode from LED to resistor then connect jumper to D5 in NodeMcu (ESP8266)

8.Connect the NodeMcu(ESP8266) to laptop using USB Cable

Connect to Telegram

To use telegram as platform for user to get notification, we must add some coding to make connection to the bot from the telegram in sketch. To follow this tutorial we must open the telegram first.

  1. Creating a Telegram Bot

1.1. Search for "botfather"

1.2. Click start button and type or click on the /newbot

1.3. Give name for the bot

1.4. Give username for the bot

1.5. Save token that had been given

2.Obtain your Telegram User ID (IDBot)

2.1. Search for (IDBot)

2.2.Click start

2.3. Type /getid

2.4 Save id that had been given

3.Insert token and id that had been given in the coding

4.Search the name that had been given to the bot in the telegram and click start button

Coding for Smart Plant Monitoring

To make connection between NodeMcu (ESP8266) and telegram we must add library in arduino sketch.

  1. ArduinoJson Library
  2. CTBot


Downloads