PIMORONI AUTOMATION HAT - BUTTON Sensor PYTHON --- > INPUT not working

Hello to all,
I am writing to you because I have an urgent problem on the pimoroni HAT module mounted on raspberry. It is not possible to read the INPUT 1 status of the TRIGGER of an analog sensor supplied at 5 V.

It is an analog sensor correctly managed on gpio libraries with front

The sensor is managed as a common BUTTON in GPIO python, Trigger event captured with command: GPIO.setup (endstop_pin1, GPIO.IN, pull_up_down = GPIO.PUD_UP) -----> See a common limit switch sensor arduino, has the three wires: data, vcc, gnd.
When the analog sensor is at rest (NO TRIGGER) it measures 2.51V with connected tester (positive tester connected to wire VCC sensor and negative tester connected to pin data (green) of the sensor);
When the analog sensor detects the TRIGGER (touched metal) measures 4.89V with tester connected (positive tester connected to VCC wire sensor and negative tester connected to pin data (green) of the sensor);

I connected the data pin of the inductive sensor to the INPUT 1 of the pimoroni HAT module (see screen connections) but the python does not detect any change of state from 0 to 1 when the sensor does TRIGGER on metal, I always detect 0.

I then did another test, connecting the pin data of the inductive sensor to the ADC 1 of the PIMORONI module (see links) but even here the python does not read correctly the analog value that instead I read on the laboratory tester. When the sensor touches metal (TRIGGER) I read 0.02, when the sensor is at rest I read not precise jumpers:
-0.3
00:05
00:41
-0.2
00:05
00:17
-0.3
00:05
00:09
-0.02
0.0
0.0
00:05
0.5
0.0
00:05
00:45

Please ask PIMORONI developers for urgent help in resolving an urgent problem detected on BUTTON python rpio libraries.

Meanwhile, thank you all.