A system for treating tissue is provided. The system includes a source of electrosurgical energy and one or more microcontrollers. A surgical instrument is electrically coupled to the source of electrosurgical energy and includes an end effector including a pair of first and second jaw members. An electrode assembly includes first and second electrodes that are configured to selectively couple to the first and second jaw members, respectively, for treating. One or both of the first and second electrodes includes one or more pressure sensors configured to communicate a pressure between the first and second jaw members to the microcontroller as the first and second jaw members grasp tissue. One or both of the first and second electrodes includes one or more position sensors configured to provide position information to the microcontroller as the first and second electrodes grasp tissue.