Capacitive detection of line