A surge protection device (SPD) diverts voltage spikes from lightning and switching to earth before they reach equipment. It is fitted at the main board and at boards feeding electronics and solar inverters.