Analog Pin State

This is the 101 board section.

However a pin can be defined and set as high till a low signal or low till a high signal.
Or even edge detection of a high or low signal.

Your choice.