NASA's Kepler spacecraft continuously observes a region of the night sky, searching for signs of transiting planets.
Keck's HIRES instrument measured Kepler-12's radial velocity, which was used to find more of Kepler-12's characteristics (and, by extension, deduce the characteristics of KOI-20 itself).