Filament width sensor?

I have just built a filament width sensor, and would like to use it on my k8200 3drag.
BUT… I already have bedlevelling with servo, so that pin is busy.
The sensor outputs 0-5v so it should be an analog input? In Marlin there are only connectioninstructions
for Ramps1.4, PrintrBoard and Rambo.
So is it possible? I should say i am thinking of adding a display also, so maybe there are no free pins?

Have started to hunt pins… I don’t know if i am understanding all correct…
My god so confusing it suddenly is… When i bought it 5years ago it was not so many includes in marlin…
Now an include includes a bunch of includes???

Am i correct that in the end “pins_RAMPS.h” is included???
If so: #ifndef FILWIDTH_PIN
#define FILWIDTH_PIN 5 // Analog Input on AUX2
#endif

Which i have traced to PF5 on Atmega2560… Correct? That pin is not broken out on the controller?

Please help :wink:

I got it working. I soldered a wire on the board on the cpu to get the input needed. Was no sweat as i have the knowledge of these extremely small solderingpoints
from my days as a ps2 modder.

The sensor works in any case.