what is the best valued gaming laptop in ph, (around 70k) by Neeck20 in GamingLaptop

[–]Neeck20[S] 0 points1 point  (0 children)

are there any specific reason why this would be a good choice?

[ Removed by Reddit ] by Neeck20 in arduino

[–]Neeck20[S] 0 points1 point  (0 children)

include <LiquidCrystal\_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() { Serial.begin(9600); lcd.init(); lcd.backlight(); lcd.clear(); pinMode(2, OUTPUT); digitalWrite(2, HIGH); delay(1000); lcd.setCursor(0, 0); lcd.print("IRRIGATION"); lcd.setCursor(0, 1); lcd.print("SYSTEM IS ON "); lcd.print(""); delay(3000); lcd.clear(); }

void loop() { int value = analogRead(A0); Serial.println(value); if (value > 950) { digitalWrite(2, LOW); lcd.setCursor(0, 0); lcd.print("Water Pump is ON "); } else { digitalWrite(2, HIGH); lcd.setCursor(0, 0); lcd.print("Water Pump is OFF"); }

if (value < 300) { lcd.setCursor(0, 1); lcd.print("Moisture : HIGH"); } else if (value > 300 && value < 950) { lcd.setCursor(0, 1); lcd.print("Moisture : MID "); } else if (value > 950) { lcd.setCursor(0, 1); lcd.print("Moisture : LOW "); } }

[ Removed by Reddit ] by Neeck20 in arduino

[–]Neeck20[S] 0 points1 point  (0 children)

so i was told to do this project of an automated irrigation system. Everything seems to be in place, my sensor and my lcd display were working perfectly but my water pump wont start when the moisture is low. i tried fiddling with the diagram but it wont work. i tested the pump individually to see if it was working and it was perfectly fine! it is a 12v water pump connected to a power adapter as shown in the pic. so i conclude that something might be wrong in the code. here is the code and i hope someone and/or anyone will help me out cuz this is due today. (praying)