Polymerase chain reaction automated at low cost