#include <LiquidCrystal.h>
LiquidCrystal lcd(18, 5, 17, 16, 4, 0);
byte analogpin=12;
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(analogpin, INPUT);
}
void loop() {
int analogstatus=analogRead(analogpin);
Serial.print("analogValue : ");
Serial.println(analogstatus);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("analogValue:");
lcd.print(analogstatus );
delay(1000);
// put your main code here, to run repeatedly:
// this speeds up the simulation
}