Level sensor LCD Display

Hi guys..

please I'm working on a water level sensor using op-amp. I'm actually done with the calibration, below is the circuit for the level sensor. I'm trying to display the equivalent value of the sensor on LCD but the range of this sensor is from 1volt to 14.4volts equivalent to 0cm to 100cm, whereby the maximum input of arduino is around 5v. I'm lost. Kindly advise me on this please

That is one hell of a special sensor to use, needing that amplifier.
If the output stage of the Op Amp train has sourcing capacity, just use a voltage divider if You can't modify, lower the output of the amplifier.

Voltage divider is working fine for it. The issue now is for my code to work perfectly.

I've written my code but i couldn't achieve a delay to display the exact value. kept displaying 0,1023 iteratively and it's very fast. can you please advise me on what to do

#include <EEPROM.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>


int sensorpin = A0;
int sensorValue = 0;
int waterlevel = 0;

LiquidCrystal_I2C lcd(0x27, 20, 4); // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
  lcd.init();                      // initialize the lcd
  lcd.init();
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(0, 0);
  lcd.print("--------------------");
  lcd.setCursor(1, 1);
  lcd.print("Process Control");
  lcd.setCursor(1, 2);
  lcd.print("Water Level Sensor");
  lcd.setCursor(0, 3);
  lcd.print("--------------------");
  delay(100);
  Serial.begin(9600);
}

void loop()
{
  sensorValue = analogRead(sensorpin); // read the input pin
  Serial.print(sensorValue);         // debug value
  Serial.println("");
  delay(100);
  waterlevel = map(sensorValue, 0, 1023, 0, 70);

  lcd.clear();
  lcd.setCursor(1, 2);
  lcd.print(waterlevel);


}

Do you mean you're getting inconsistent results?

The delay seems a bit short if you're trying to read the LCD by eye.

Did you ever get your other project working?

YES. Just getting to read to arduino and LCD is the issue

What does the serial output look like?

I noticed, even though I removed the input.. The arduino is still getting readings somewhere and I don't Know where exactly.

305
301
298
294
299
301
306
309
293
296
301
293

Is that with the sensor connected?

If you're clearing the LCD ten times a second, I doubt you'll manage to read anything there.

It's working fine now. Thanks guys