so i out this code that i made for my project, what the code is supposed to do is when the sensors output is triggerd the servo will move when i put the code in and run it on my adafruit trinket 3.3v the sensor turns on without anything in front of it and the servo does a 360 degree turn 2 times except it does it in 15ths so thats weird. anyways if anyone can help me revise my code that would be great thanks!
Is your servo a continuous rotation type (no position control)? If so, you can only control it's speed (somewhat), around 90 degrees, it should stand still, the farther from 90 (+ & -), the faster.