The wires connect the box to the chambers of your heart. At the end of the wires are little sensors called electrodes. The electrodes sense electricity from your heart and send electrical shocks.