I have a pressure governor sensor which is shorting to ground when active. So from programming view when the digital input goes to 0 the alarm is active.
Thought to do this with and resistive divider where the second resistor gets shorted to ground while the sensor is active. The first resistor is limiting the current.
Teensy 3.5 and the sensor is just switching, so no specific voltage needed for the sensor.
Is this the right way and what shall I take as resistor values?