HC165N with Esp8266

Floating inputs on a CMOS chip? That is not going to behave as you expect nor will it end well.

1 Like