ESP32: analogRead

From OnnoWiki
Revision as of 19:05, 5 November 2019 by Onnowpurbo (Talk | contribs)

Jump to: navigation, search
void setup() {
  Serial.begin(115200);
}

void loop() {
  int sensorReading = analogRead(15); //cek pin di layout
  Serial.println(sensorReading); 
  delay(1000);
}