Programming LCD 20x4 HELP

Personal’m doing a project where I use 3 sensors and send their values ??to a 20x4 LCD but I are happening these problems described below:

Topic 1-I have for example the sensor to measure 23A then cut the chain getting to 0 but the lcd is 03 ie 3 does not disappear as I clean those 3 characters lcd whenever changes values ??or simply any other process.

Topic 2-I wanted to make a sort of table in LCD as shown in the picture and wanted to do vertical lines to separate columns from each other was just as the picture shows

Topic 3-line 3 column 0 upostamente should appear a P because it appears that (Square) messed up?

Also sending the code so that they can analyze:

Topic 1 ;
//-----------------------Sensor de corrente 235A(BAT)-----------------------------------------------------------
lcd.setCursor(3,1);
lcd.print(12); //Valor de tensão na bateria

valor235 = analogRead(A5); //Valor do pino Analógico 5
//Sinal entre 1V e 3V
//5V=1024 1.47mV = (0.80851024)/5 = 165.5808 //1.96-(0.2354.9)=0.8085
//5V=1024 2.45mV = (3.1151024)/5 = 638,952 ~639 //1.96+(0.2354.9)=3.115
minimo235=((1.86-(0.1*9.4))1024/5);
maximo235=((1.86+(0.1
9.4))*1024/5);
corrente235 = map(valor235, minimo235, maximo235, -235, 235); //Calculo
Serial.print(“BAT:”);
Serial.print(corrente235); //Apresentação dos resultados da corrente no serial monitor
Serial.print(“A”);
lcd.setCursor(3, 2);
lcd.print(corrente235); //Apresentação do resultado/temperatura no LCD
delay(2000); //Actualização dos dados a cada 2 segundo

PBAT=TBAT*corrente235; //Potência da bateria
Serial.print(PBAT);
lcd.setCursor(3,3);
lcd.print(PBAT);
//--------------------------------------------------------------------------------------------------------------------

Topic 2:
lcd.setCursor(18,0);
lcd.println("|");
lcd.setCursor(18,1);
lcd.println("|");
lcd.setCursor(18,2);
lcd.println("|");
lcd.setCursor(18,3);
lcd.println("|");

lcd.setCursor(13,0);
lcd.println("|");
lcd.setCursor(13,1);
lcd.println("|");
lcd.setCursor(13,2);
lcd.println("|");
lcd.setCursor(13,3);
lcd.println("|");

Tópic 3:
//-----------------------1ªColuna------------------------------------------------------------
lcd.setCursor(0,1);//Coluna 0,1 Linha 0 (V)
lcd.print("V= ");
lcd.setCursor(0,2);//Coluna 0,1 Linha 1 (I)
lcd.print(“I=”);
lcd.setCursor(0,3);//Coluna 0.1 Linha 2 (P)
lcd.print(“P=”);

Greetings

Topic 1-I have for example the sensor to measure 23A then cut the chain getting to 0 but the lcd is 03 ie 3 does not disappear as I clean those 3 characters lcd whenever changes values ??or simply any other process.

What does “then cut the chain” mean? If you print a shorter value after printing a longer value, then the characters from the longer value are not overwritten. Therefore, you must make sure that you always print the same number of characters. Spaces count as characters, and erase the previous value from the LCD.

Topic 2-I wanted to make a sort of table in LCD as shown in the picture and wanted to do vertical lines to separate columns from each other was just as the picture shows

Permission granted. So, what’s the problem? (Aside from the fact that lcd. and println() don’t go together.)

Topic 3-line 3 column 0 upostamente should appear a P because it appears that (Square) messed up?

Can’t argue with that. Can’t argue with stuff I can’t understand.

Already decided all prblemas
Thank you