having means for detecting an inserted needle