Online control of the gain drift with temperature of SiPM arrays used for the readout of LaB
3:Ce crystals
This paper presents a custom NIM module that corrects the gain drift with temperature of SiPM arrays used to read out LaBr$_3$:Ce crystals. The module, based on a CAEN A7585 digital power supply, stabilizes the SiPM response, preventing deterioration of the detector's FWHM energy resolution. Tests with SiPM arrays from Advansid, Sensl, and Hamamatsu show that, at the $^{137}$Cs peak, an energy resolution better than 3% was achieved for a typical LaBr$_3$:Ce crystal using Hamamatsu S13461 arrays, matching the best PMT results.