programming problem

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…

Welcome on the forum,

I see that the title is NOT descriptive of the problem you have.
You do not use CTRL-T to autoindent code to make it readable
You do not use code tags to make it more readable

If you have a look at the blink without delay example, the base technique is shown how to solve your problem.

If you open the Arduino IDE, there is one of the examples called "blink without delay".
It shows how to schedule simple tasks at regular intervals.
It is a very worthwhile exercise to try to modify it to do what you want to do.

The demo Several Things at a Time is an extended example of BWoD and illustrates the use of millis() to manage timing without blocking. It may help with understanding the technique.

...R

I want to delete the word "delay" from the programming and replace it with (millis) in order to be able to add more programming

Take a look at Using millis() for timing. A beginners guide and the thread that Robin linked to.

I want to delete the word "delay" from the programming and replace it with (millis) in order to be able to add more programming

Under what circumstances does the block with the delay() statement get executed? Can those circumstances actually exist?

Why do you exclude the situations where f, t, h, and/or q equal v?