the microcontroller datasheet should say which ports are analog (ADC).
the other way is to set the port as analog through software and attach an analog sensor to it. then do an if/then statement such as: if analog(port 1) is 125, then do something with another port.