Skip to content

Instantly share code, notes, and snippets.

@9arduino
9arduino / Examples Tree.ino
Last active April 23, 2025 13:54
ตัวอย่างโปรเจค รดน้ำต้นไม้อัตโนมัติ การต่ออุปกรณ์ อ่านเพิ่มเติมได้ใน Link https://www.ab.in.th/b/10
/*
ตัวอย่างโปรเจค รดน้ำต้นไม้อัตโนมัติ การต่ออุปกรณ์
อ่านเพิ่มเติมได้ใน Link https://www.ab.in.th/b/10
การต่อวงจร https://dx.lnwfile.com/_/dx/_raw/nf/s5/ew.png
*/
const int analogInPin = A5;
const int relay = 2;
int sensorValue = 0; // ตัวแปรค่า Analog
/*
* ไลบรารี่ TridentTD_LineNotify version 2.1
* ใช้สำหรับ ส่ง แจ้งเตือนไปยัง LINE สำหรับ ESP8266 และ ESP32
* สามารถส่งได้ทั้ง ข้อความ , สติกเกอร์ และรูปภาพ(ด้วย url)
* -----------------------------------------------------
* ให้ save เป็น file ต่างหากก่อนถึงจะส่ง Line Notify ภาษาไทยได้
*/
#include <TridentTD_LineNotify.h>