ARDUINO EXAMPLES 2

Analog Read Serial



Hardware Required

  • -Arduino or Genuino Board
  • -10k or 5k ohm Potentiometer

void setup() {
  Serial.begin(9600);
}
void loop() {
  int sensor = analogRead(A0);
  Serial.println(sensor);
  delay(1);       
}

No comments:

Post a Comment