void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(23,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int x = 0;
x = analogRead(4);
//x = map(x,0,4095,0,100);
Serial.print("Value = ");
Serial.println(x);
analogWrite(23,x);
delay(100);
}