 {
   int height = analogRead(sonarPin);
 
-  Log.Verbose("Height: %d\n", height);
+  char heightBuf[81] = {0};
+  drawMeter(height, 160, heightBuf);
+//  Log.Info("%s\n", heightBuf);
+  Serial.println(heightBuf);
 
   if (height > 170)
   {

    myMotor->step(stepSize, directionToStep, DOUBLE);
  delay(delayBetweenSteps);
  int currentLightReading = analogRead(lightSensorPin);
  return currentLightReading;
}

//Is debug on? If so print some data.
void checkNotes(int reflectedLightValues[], boolean pluckedNotes[])
{
  for (int i = 0; i < numberNotes; i++)

int reflectedLightValues[numberNotes];


int gLogLevel = LOG_LEVEL_NOOUTPUT;
//int gLogLevel = LOG_LEVEL_ERRORS;
//int gLogLevel = LOG_LEVEL_INFOS;
//int gLogLevel = LOG_LEVEL_DEBUG;
//int gLogLevel = LOG_LEVEL_VERBOSE;


// buf must be an array with length > segmentCount. This function can write to buf[segmentCount]
void drawMeter(int value, int maxValue, char * buf, char segmentSymbol = '=', size_t totalSegments = 80)
{
    float scaleFactor = (float)totalSegments / maxValue;
    int segmentCount = (int)(0.5 + (min(value, maxValue) * scaleFactor));
    memset(buf, segmentSymbol, segmentCount);
    buf[segmentCount] = 0;
}

void setup()
{
  Log.Init(gLogLevel, 9600);
  harpNoteDetector.setNumNotes(numberNotes);

  //For the light sensor
