The photoelectric effect occurs only when the incident light has more than a entain minimum

energy which means frequency due to the energy of a photon = h f