function [x, y, d] = setup_sensor()

vcapg2; pause(3);
fprintf('Place the red circle on the tip of the arm.\n');
fprintf('We need the pixel coordinates of the base as well as\n');
fprintf('the approximate diameter of the red circle in pixels.\n');
fprintf('Press enter to display an image.  Note the zoom tools on the toolbar. \n');
fprintf('Return to the console to enter the data. \n');
img = vcapg2; image(img);
x = input('base x-coordinate: ');
y = input('base y-coordinate: ');
d = input('red circle diameter: ');
fprintf('Done. \n');