This Sketch is an example of how to use preset positions triggered by buttons to move a linear actuator.