const int pinSensor = 34;
int adcValue = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(pinSensor, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
adcValue = analogRead(pinSensor);
Serial.print("Nilai ADC : ");
Serial.println(adcValue);
delay(1000); // this speeds up the simulation
}