potentiometer and led screen can't work together

I want to read data from potentiometer but

when I read data from potentiometer every time calculate positive numbers because of lcd.setCursor.
But I don't know how to solve this problem. I write the code below.

#define BACKLIGHT_PIN 13
#include <LiquidCrystal_I2C.h>
#include <Encoder.h>
Encoder potansiometer(6,7);
LiquidCrystal_I2C lcd(0x27,20,4); // Set the LCD I2C address

long newPosition=-999;

void setup() {

Serial.begin(9600);

lcd.begin(16,2);
lcd.init();
lcd.init();
lcd.backlight();
lcd.clear();
lcd.setCursor(0,0);
lcd.clear();
}

void loop() {
newPosition = potansiometer.read();
Serial.println(newPosition);
lcd.setCursor(0,1);
lcd.print(newPosition);
lcd.setCursor(0,0);
lcd.print("how are you");
lcd.setCursor(11,0);
lcd.print("nn");
}

Hi, and welcome to the forum.
Your code is incomplete, and I don't fully understand the question.
What do you want to display.

Assuming you have an Arduino Uno, then the 10-bit A/D returns 0-1023.
Maybe you're looking for the map() function, to shift that into a range you want.
int newPosition = map(analogRead(A0), 0, 1023, -999, 999); // something like that?
Leo..

A potentiometer is not the same thing as a rotary encoder knob. You are using an Encoder library.

yes, I know my code is long so I didn't write here.

I want to change newposition data use potentiometer and write to the screen.

if I only use the code without lcd.setCursor everything going well.

But when I use lcd.setCursor text code, potentiometer not going minus numbers.

I think lcd.setCursor code appears some problems but I didn't find.

if I only use
"
newPosition = potansiometer.read();
Serial.println(newPosition); "

I can change the newPosition data.