Photocell acts on the principle of the Photoelectric effect.
It converts light energy to electrical energy.
Photocell works on the principle that electron leaves the metal surface whenever photons of sufficient energy strike the surface, thus converting light energy into electric energy.