Can anyone help me?
I am new in the world of Arduino and I have a problem in programming below
it is for water level sensor
#include <LiquidCrystal.h>
int qut=A1;
int hlf=A2;
int thf=A3;
int ful=A4;
int q;
int h;
int t;
int f;
int v=100; //comparison variable(needs some adjustment)
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
pinMode(qut,INPUT);
pinMode(hlf,INPUT);
pinMode(qut,INPUT);
pinMode(ful,INPUT);
lcd.begin(16, 2);
}
void loop()
{
q=analogRead(qut);
h=analogRead(hlf);
t=analogRead(thf);
f=analogRead(ful);
lcd.clear();
if(f>v && t>v && h>v && q>v )
{
lcd.setCursor(0,0);
lcd.print(char(250));
lcd.print(char(219));
lcd.print(char(219));
lcd.print(char(219));
lcd.setCursor(5,0);
lcd.print(“FULL”);
}
else
{
if(f<v && t>v && h>v && q>v)
{
lcd.setCursor(0,0);
lcd.print(char(219));
lcd.print(char(219));
lcd.print(char(219));
lcd.print("");
lcd.setCursor(5,0);
lcd.print(“3/4th”);
}
else
{
if(f<v && t<v && h>v && q>v)
{
lcd.setCursor(0,0);
lcd.print(char(219));
lcd.print(char(219));
lcd.print("");
lcd.print("");
lcd.setCursor(5,0);
lcd.print(“HALF”);
}
else
if(f<v && t<v && h<v && q>v)
{
lcd.setCursor(0,0);
lcd.print(char(219));
lcd.print("");
lcd.print("");
lcd.print("");
lcd.setCursor(5,0);
lcd.print(“1/4th”);
}
else
{
if(f<v && t<v && h<v && q<v)
{
lcd.setCursor(0,0);
lcd.print("");
lcd.print("");
lcd.print("");
lcd.print("");
lcd.setCursor(5,0);
lcd.print(“LOW”);
}
else
{
lcd.setCursor(0,0);
lcd.print(“ERROR!”);
}
delay(50);
lcd.clear();
}
}
}
}
I want to delete the word “delay” from the programming and replace it with (millis) in order to be able to add more programming
I am very grateful to you for your help
thank you…