Digital input and pulse counter

When configuring the digital I/O pin as a digital input, it allows the following modes of operation:

Each mode has a pull-up resistor that you can enable or disable. The pull-up indicates the digital input’s state when there is no external voltage.

Note If you enable the pull-up resistor, it will constantly draw power. Depending on the current flow to the sensor, you may need to externally power the Connect Sensor+.

The following figure shows a digital input with the pull-up resistor enabled where it is driving an external relay.

The following figure shows a digital input with the pull-up resistor disabled.