void setup() {
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(27, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
int a = analogRead(26);
delay(1000);
Serial.print("Intensity of led is:");
Serial.println(a/16);
analogWrite(27,a/16);
}