@Veti Thanks!
My thoughts were to understand if someone already had made it.
I will pursue that route. When I will get it working I'll post the code for reference.
I have on my roadmap to include the magnetic filament sensor. This project is independent of that and both will work simultaneously. 🙂