Inanimate objects, like an elevator, can lift/move the hammer. Using the same logic, Ultron should also be able to lift the hammer. Why vision can lift Mjolnir? Vision, for whatever reason, is considered as worthy as Thor to wield the hammer. Thor tends to believe this is true, which is why he let Vision keep the Infinity Stone.