The MilCandy could be the easiest controller to manipulate your physical world. It's an all-in-one design with cost and convenience in mind. It enables accomplishing simple AI tasks by plug-in sensor, actuator, and setting the triggering pattern via a few button clicks. Its Arduino based open source firmware could be updated for more complex logic.