pressure switch

i know i need to wire the pressure with a pwm-like cable but i don’t get how to really do that.
pics would be great!

The two outside wires of the standard pwm cable.
Don’t use the middle +5v power line.





…and connect it to a digital input