Analog input gets noise from power supply

How long wire to sensors? Shielded cable? May be it would make a difference to put a cap close to inputs.