Analog input for filamentdiameter sensor with marlin2.0?

What pin to use for analog in on smoothieboard 5x?

The thermistor pins. There is another broken out pin that is an analog pin, you want to check the LPC1769 datasheet (which tells which pins are ADC ) against the pinout page at smoothieware.org/pinout