A robotic system includes an electrosurgical generator; an electrosurgical instrument including an electrosurgical connector; and a robotic arm having an instrument drive unit coupled to the electrosurgical instrument. The instrument drive unit includes a drive unit housing having: an electrosurgical receptacle coupled to the electrosurgical generator and configured to engage the electrosurgical connector; an activation link configured to engage the electrosurgical connector; and a detection switch actuatable by the actuation link upon being engaged by the electrosurgical connector.