smart AGRICULTURE part1|| vcb ea.

Subscribe here Components required: 1. Arduino uno 2. 5V Motor pump 3. Bread board 4. OLED display 5. Capacitive soil moisture sensor Circuit connections are given below the code. Demo video is also available. #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #define OLED_RESET 4 Adafruit_SSD1306 display(OLED_RESET); const int AirValue = 790; const int WaterValue = 390; int intervals = (AirValue - WaterValue)/3; int soilMoistureValue = 0; int soilmoisturepercent=0; void setup() { // put your setup code here, to run once: pinMode(A0,INPUT); pinMode(4,OUTPUT); Serial.begin(9600); display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //initialize with the I2C addr 0x3C (128x64) display.clearDisplay(); } void loop() { // put your main code here, to run repeatedly: soilMoistureValue = analogRead(A0); //put Sensor insert into soil Serial.println(soilM...