help adapting a sketch to use a 16x2 lcd
OK, I have it working OK, by adding code from a battery monitor. I kinda just stabbed at it till it stuck, changing &quot;oled&quot; to &quot;LCD&quot; and a few other things.  Sorry i can't be more descriptive..... I'm not sure why it worked but eventually it stopped chucking errors at me .
This is the working code:
#include &lt;LiquidCrystal_I2C.h&gt;


int TankValue0;
int TankValue1;

LiquidCrystal_I2C lcd(0x27, 16, 2);   // set the LCD address to 0x27 for a 16 chars and 2 line display
     
void setup() {
  lcd.init();                          // initialize the lcd
  lcd.init();
  lcd.backlight();
  lcd.setCursor(1, 0);
  lcd.clear();
  lcd.print(&quot;WORD&quot;);
  lcd.setCursor(0, 1);
  lcd.print(&quot;TO&quot;);
  delay(1500);
  lcd.clear();
  lcd.print(&quot;YO &quot;);
  lcd.setCursor(0, 1);
  lcd.print(&quot;MOMMA&quot;);        
  delay(2000);
  lcd.clear();
  pinMode(A0, INPUT);
  Serial.begin(9600);               // starting the Serial Monitor
}

void loop() {
  int sensorTankValue0 = analogRead(A0);
  int sensorTankValue1 = analogRead(A1);
  TankValue0 = map(sensorTankValue0, 210, 695, 0, 100);// i just changed the first 2 set of values till it was right for full and empty
  TankValue1 = map(sensorTankValue1, 210, 695, 0, 100);
  if (TankValue0 &lt; 0) {
    TankValue0 = 0;
  }
  if (TankValue1 &lt; 0) {
    TankValue1 = 0;
  }
  if (TankValue0 &gt; 100) {
    TankValue0 = 100;
  }
  if (TankValue1 &gt; 100) {
    TankValue1 = 100;
  }
  lcd.print(&quot;Water Level is :&quot;);
  lcd.setCursor(0, 1);
  delay(100);
  lcd.print(&quot;WATER TANK = &quot;);
  lcd.print(TankValue0);
  lcd.print(&quot;%&quot;);
  lcd.setCursor(0, 0);

  delay(10000);
  lcd.clear();
}