ESP32: analogRead
Revision as of 19:14, 24 February 2023 by Onnowpurbo (talk | contribs)
void setup() { Serial.begin(115200); } void loop() { int sensorReading = analogRead(4); // connect ke D4 Serial.println(sensorReading); delay(1000); } // nilai max 4096