If you don't want to be replaced by machine you need a skill which machine can't replicate and train that skill somehow. Or become a very good machine operator.
For that matters, pens are a type of machine. if you use a pen you are a machine operator.
tool + drive = machine
machine + sensor = automaton
automaton + decision = robot