// Learn about the ESP32 WiFi simulation in
// https://docs.wokwi.com/guides/esp32-wifi
#define SENSOR 15
int sensorvalue=0;
int sensorvoltage=0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(SENSOR, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
sensorvalue=analogRead(SENSOR);
Serial.println(sensorvalue);
sensorvoltage=sensorvalue*(3.3/4096);
Serial.println(sensorvoltage);
delay(1000);
}