Computer engineering

A microcontroller pin is connected to a digital signal from an external sensor. What must software generally do before using the pin to detect the signal?