Hall sensor- grove pi

Hello!
I am looking for a grove pi code that can work with hall sensors;
agenda is to measure distance based on the voltage intensity measured.

Thanks & Regards,
Trisha

https://wiki.seeedstudio.com/Grove-Hall_Sensor/#software
Here, the RPI part is yet to be done and I am looking for guidance for the same.

Thanks & Regards
Trisha