CD4051 Multiplexor input test sketch

  1. That's very inefficient;
  2. You may spuriously select two wrong channels before settling on your target channel.