There are two types of light sensors used in robot parts- photoresistors and photovoltaic cells. There are some more - CCDs, Phototubes, Phototransistors. However, these are very rarely used. Photoresistors change their resistance by changing light intensities.