A flow control apparatus (1, 101, 201, 301, 401) for delivering fluid to a subject through tubing (11, 111, 211, 311, 411) of a feeding set (3, 103, 203, 303), comprising: housing capable of receiving at least a portion of the tubing of the feeding set; a pumping device configured to act on the feeding set to produce fluid flow in the feeding set for delivery of fluid to a subject; and an ultrasonic sensor (64, 164, 264, 364, 464) arranged with respect to the pumping device and configured to sense the feeding set, the ultrasonic sensor including an ultrasonic emitter (72, 172, 272, 372, 472) configured to emit an ultrasonic signal and an ultrasonic detector (74, 174, 274, 374, 474) configured to detect the ultrasonic signal; characterized in that when the feeding set is received by the housing, a portion of the tubing of the feeding set is arranged to be disposed in a path of the ultrasonic signal such that the ultrasonic signal from the emitter is directed through the tubing of the feeding set, said portion of the tubing producing a signal detectable by the ultrasonic detector providing an indication of a condition of the feeding set; and a control circuit in communication with the ultrasonic sensor (64, 164, 264, 364, 464) and configured to identify the feeding set based on the sensor signal received from the ultrasonic sensor, wherein the control circuit includes a memory containing a plurality of identities of feeding sets (3, 103, 203, 303), the control circuit being configured to match the sensor signal with one of the plurality of stored identities and to control operation of the flow control apparatus based on one or more characteristics associated with the stored identity that matches the sensor signal. housing capable of receiving at least a portion of the tubing of the feeding set; a pumping device configured to act on the feeding set to produce fluid flow in the feeding set for delivery of fluid to a subject; and an ultrasonic sensor (64, 164, 264, 364, 464) arranged with respect to the pumping device and configured to sense the feeding set, the ultrasonic sensor including an ultrasonic emitter (72, 172, 272, 372, 472) configured to emit an ultrasonic signal and an ultrasonic detector (74, 174, 274, 374, 474) configured to detect the ultrasonic signal; characterized in that when the feeding set is received by the housing, a portion of the tubing of the feeding set is arranged to be disposed in a path of the ultrasonic signal such that the ultrasonic signal from the emitter is directed through the tubing of the feeding set, said portion of the tubing producing a signal detectable by the ultrasonic detector providing an indication of a condition of the feeding set; and a control circuit in communication with the ultrasonic sensor (64, 164, 264, 364, 464) and configured to identify the feeding set based on the sensor signal received from the ultrasonic sensor, wherein the control circuit includes a memory containing a plurality of identities of feeding sets (3, 103, 203, 303), the control circuit being configured to match the sensor signal with one of the plurality of stored identities and to control operation of the flow control apparatus based on one or more characteristics associated with the stored identity that matches the sensor signal.