is there a function triggered by certain input voltage change?

Also every pin can trigger a "pin change interrupt". In addition it is possible to trigger interupts from the ADC. In doubt consult the datasheet :wink: