 
   angleAdjustment *= -1;    // reverse direction
 }
-
-double analogReadAverage(int pin, unsigned int points)
-{
-  double sum = 0;
-  for (unsigned int i=0; i<points; i++)
-    sum += analogRead(pin);
-  return sum / points;
-}
-


#include <Servo.h>  // servo library

#define servo0PWMPin 11
#define servo0sensorPin A0

#define angleMax 110
#define angleMin 30

Servo servo;
int angle = angleMin;
int angleAdjustment = 1;

void setup()
{
  servo.attach( servo0PWMPin );
  
  Serial.begin(9600);


    {
      Serial.print( angle );
      Serial.write(',');
      Serial.println( analogRead( clawSensorPin ) );
    }
    
    angle += angleAdjustment;
