Silicon photonic microchips may be useful for compact, inexpensive, room-temperature optically pumped photon-pair sources, which unlike conventional photon-pair generators based on crystals or optical fibers, can be manufactured using CMOS-compatible processes on silicon wafers. It has been shown that photon pairs can be created in simple structures such as microring resonators at a rate of a few hundred kilohertz using less than a milliwatt of optical pump power, based on the process of spontaneous four-wave mixing. To create a practical photon-pair source, however, also requires some way of monitoring the device and aligning the pump wavelength when the temperature varies, since silicon resonators are highly sensitive to temperature. In fact, monitoring photodiodes are standard components in classical laser diodes, but the incorporation of germanium or InGaAs photodiodes would raise the cost and fabrication complexity. Here, we present a simple and effective all-electronic technique for finding the optimum operating point for the microring used to generate photon pairs, based on measuring the reverse-biased current in a silicon p-i-n junction diode fabricated across the waveguide that constitutes the silicon microring. We show that by monitoring the current, and using it to tune the pump laser wavelength, the photon-pair generation properties of the microring can be preserved over a temperature range of more than 30 °C.