In this work, binary hydrogel films based on carboxylated multi-walled carbon nanotubes/poly(N,N-diethylacrylamide) (c-MWCNTs/PDEA) were successfully polymerized and assembled on a glassy carbon (GC) electrode surface. The electroactive drug probes matrine and sophoridine in solution showed reversible thermal-, salt-, methanol- and pH-responsive switchable cyclic voltammetric (CV) behaviors at the film electrodes. The control experiments showed that the pH-responsive property of the system could be ascribed to the drug components of the solutions, whereas the thermal-, salt- and methanol-sensitive behaviors were attributed to the PDEA constituent of the films. The CV signals particularly, of matrine and sophoridine were significantly amplified by the electrocatalysis of c-MWCNTs in the films at 1.02 V and 0.91 V, respectively. Moreover, the addition of esterase, urease, ethyl butyrate, and urea to the solution also changed the pH of the system, and produced similar CV peaks as with dilution by HCl or NaOH. Based on these experiments, a 6-input/5-output logic gate system and 2-to-1 encoder were successfully constructed. The present system may lead to the development of novel types of molecular computing systems.