Magnet sensor sweep code

No. Try search for VarSpeedServo in the forum or WWW.