By designing a program to watch for anything squirrel shaped, and installing a water gun on a rotating turret, he was able to create a machine that recognized squirrels and soaked them from afar.