How should unused analog inputs be handled?
Non-connected analog inputs should always be connected to the analog ground or common reference terminal. This eliminates phantom readings on all unused analog inputs.
When an unused analog input is not connected to a reference voltage source, the high-impedance circuitry can react to local electrical noise causing the input to see phantom data. Connecting all unused analog inputs to the analog ground or common reference terminal will eliminate this problem.