Connecting motors to the iot