void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(19, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
delay(100); // this speeds up the simulation
int v = analogRead(33);
Serial.println(v);
if (v>2000)
digitalWrite(19, LOW);
else
digitalWrite(19, HIGH);
}