In an aspect, a pinch sensor is provided, comprising: an elongate non-conductive casing enclosing first, second, and third elongate conductive electrodes; the first and second electrodes being separated by a portion of the casing, a capacitance between the first and second electrodes changing when an obstacle approaches the first electrode to provide a proximity indication of the obstacle to the pinch sensor; and, the second and third electrodes being separated by an air gap formed in the casing, a resistance between the second and third electrodes changing when the second and third electrodes come into contact upon compression of the casing by the obstacle to provide a contact indication of the obstacle with the pinch sensor.