Looking for code to turn motor into servo

setting up this stange three story "home" in the wilderness (totally off the grid - collects rainwater for drinking and such).

There was something about a house like this in the news just recently. :stuck_out_tongue_closed_eyes: