Arduino intelligent agricultural system with blynk(IOT)
Arduino intelligent agricultural system with blynk(IOT)
0
Components
Hardware componentsSoil Moisture Sensor
x 1
Ultrasonic Sensor
x 1
DHT11
x 1
Relay
x 1
jumper wires
x 1
Project description
CODE CODE HEREC/C++ #define TRIGGER 4 #define ECHO 5 #define LED 12 #define BLYNK_PRINT Serial #include <Adafruit_Sensor.h> #include <SPI.h> #include <Ethernet.h> #include <DHT.h> #include <BlynkSimpleEthernet.h> char auth[] = "TOKEN"; #define W5100_CS 10 #define SDCARD_CS 4 #define DHTPIN 2 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); BlynkTimer timer; WidgetLCD lcd(V8); int n; int n1; void sendSensor() { float h = dht.readHumidity(); float t = dht.readTemperature(); if (isnan(h) || isnan(t)) { Serial.println("Failed to read from DHT sensor!"); return; } Blynk.virtualWrite(V5, h)…
Keep reading with a free account
Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.



