//Incluindo a biblioteca do Display LCD
#include<LiquidCrystal.h>
LiquidCrystal lcd (19,23,18,17,16,15);
const int POT = 2;
void setup() {
lcd.begin(16,2);
analogReadResolution(12);
Serial.begin(115200);
pinMode(POT, INPUT);
}
void loop() {
lcd.setCursor(0,0);
lcd.print("Nivel de agua: ");
int VALOR_POT = analogRead(POT);
lcd.setCursor(0,1);
//lcd.print(int(VALOR_POT/40.95));
lcd.print(String(int(VALOR_POT/40.95)+ String("%")));
//lcd.setCursor(3,1);
//lcd.print("%");
delay(275);
lcd.clear();
//lcd.print(string(VALOR_POT)+ string("%")); porcentagem acompanha o numero
}