A medical device includes an insertion tube, having a proximal end and a distal end, which is configured for insertion into a body of a patient. A handle is fixed to the proximal end of the insertion tube and is configured to be held by a user of the device. A sensor associated with the handle is configured to generate a signal to a control console indicating whether the user is holding the handle.