if i want to use capacitive sensor here
I would forget it. The capacitive sensor idea is not a very reliable thing to do, it is even less reliable when using a multiplexer on the input.
This is because :-
- It relies on a very high impedance input.
- Multiplexers do not work well if at all with high impedance inputs, there is too much cross talk between the channels.