DEVELOPMENT OF AN AUTOMATIC IRRIGATION SYSTEM BASED ON TELEGRAM BOT AND NODEMCU ESP8266

Authors

  • Adrian Agung Ibrahim Universitas Kuningan Author
  • Azril Fajar Saputra Universitas Kuningan Author
  • Muhamad Sobri Universitas Kuningan Author
  • Muhammad Aldan Aldiansyah Universitas Kuningan Author

Keywords:

IoT, Telegram Bot, Automatic Watering, NodeMCU, Soil Moisture

Abstract

This research develops an automatic irrigation system based on the Internet of Things (IoT) that not only operates based on soil moisture readings but can also be manually controlled via Telegram Bot commands. Watering plants is very important for maintaining their survival, but people often forget to water them due to busyness, resulting in the plants drying out or even dying. The system development includes hardware design using NodeMCU ESP8266 as the main microcontroller, a capacitive moisture sensor as the humidity detector, a relay as the electronic switch, and a mini water pump as the watering actuator. The software was developed using Arduino IDE by utilizing the ESP8266WiFi.h, WiFiClientSecure.h, and Universal TelegramBot.h libraries. The program is designed to read soil moisture every 10 seconds and activate the pump if the moisture level is below 50%. Additionally, the system also accommodates manual control through the Telegram Bot; if the user sends the command /siram, the pump will turn on for 5 seconds, and the command /kelembaban will display the soil moisture value. This system provides ease, efficiency, and flexibility for users in monitoring and controlling plant watering remotely, both automatically and manually. Test results show that the system can operate well and stably, and manual watering can be performed without disrupting the automatic logic.

Published

2025-01-10