Add trigger function for AnalogInput.