I used a servo as a grabber so I don't know the angle I need specifically.I need it to break the serve.write(angle)
when the grabber holds something.
I used a simple code
#include <Servo.h>
Servo myservo;
void setup() {
myservo.attach(9);
}
void loop() {
myservo.write(100);
delay(500);
myservo.write(50);
delay(500);
}
when it holds anything it deos not return to the small angle until I remove the obstacle from its way.