Kindly mention changes to the circuit -The CD4049 would be a better choice but you should use higher value resistors, like 100k or more to ground, and then to prevent electrostatic or environmental discharge put another 100k between the input of the CD4049 and its input, to protect the input protection diodes on the CD4049.





