Arduino uno ohm meter

Hi please help me how to generate the code below how to print in Lcd 20X4 in 3 connections RX 5V GND

int analogPin= 0;
int raw= 0;
int Vin= 5;
float Vout= 0;
float R1= 1000;
float R2= 0;
float buffer= 0;

void setup()
{
Serial.begin(9600);
}

void loop()
{
raw= analogRead(analogPin);
if(raw)
{
buffer= raw * Vin;
Vout= (buffer)/1024.0;
buffer= (Vin/Vout) -1;
R2= R1 * buffer;
Serial.print("Vout: ");
Serial.println(Vout);
Serial.print("R2: ");
Serial.println(R2);
delay(1000);
}
}

Please give more information on what you require. Also your experience in programming and electronics.

Weedpharma

Welcome to the Forum! You should read the two posts by Nick Gammon at the top of this Forum for guidelines on using the Forum, especially the use of code tags. It will help us help you.

Hello thanks for the respond the code is work to serial monitor i want to print in lcd
i study in my own using a arduino forum great hobby to generate codes

how to print in Lcd 20X4

I think you should look at some tutorials on how to use a LCD.
https://learn.adafruit.com/adafruit-arduino-lesson-11-lcd-displays-1?view=all

https://learn.adafruit.com/adafruit-arduino-lesson-12-lcd-displays-part-2?view=all
.