MCP23017 keypad hall

Hello!

I am trying to build a matrix keypad with Arduino Uno and a MCP23017 port expander. I got the MCP23017 working with the keypad_mc17 library to this point, even with different i2c addresse :)).

Now i want to use halls sensors instead of pushbuttons and i don't know how to wire them. I have 3144 hall sensors and little knowledge of electronics :)) I tried using different diagrams but none worked.

Datasheets: