Controlling the IoT