#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int speed = 0;
int potPin = A0;
int potValue = 0;
void setup() {
lcd.begin(16, 2);
}
void loop() {
potValue = analogRead(potPin);
speed = map(potValue, 0, 1023, 0, 100);
lcd.setCursor(0, 0);
lcd.print("Speed: ");
lcd.setCursor(0, 1);
lcd.print(speed);
lcd.print(" km/h");
delay(500);
}