Problem with coding HC4051

Grumpy_Mike:
I notice the total lack of any decoupling capacitors. That is just asking for troubled.

Well, you could have said that, and Helped a bit !! ... after all, I made this post because i needed help and coudnt figure it myself. Some of us are newbee's and not that smart at electronics as you are.