Tax any form of automation, be it software or hardware, and pay everyone a universal income from it.