/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor This example code is in the public domain. */ void setup() { Serial.begin(9600); } void loop() { int sensorValue = analogRead(A0); //digitalWrite(A0, HIGH); Serial.print(sensorValue, DEC); Serial.print("\t"); int loopValue = 0; for (loopValue = 0; loopValue < sensorValue; loopValue +=64) { Serial.print('='); } Serial.println("|"); // delay(100); }