Difference between revisions of "ESP32: analogRead"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
  
 
  void setup() {
 
  void setup() {
   Serial.begin(11500);
+
   Serial.begin(115200);
 
  }
 
  }
 
   
 
   

Revision as of 17:00, 5 November 2019

void setup() {
  Serial.begin(115200);
}

void loop() {
  int sensorReading = analogRead(15);
  Serial.println(sensorReading); 
  delay(1000);
}