"You didn't say what the sensor is or what the interface
circuit is betweel the microcontroller and sensor."
The microcontroller I'm using is a PIC16f877A.The light sensors in my circuit are solar cells (Part#CPC1822).I have connected 4 solar cells to four analog inputs (PortA pin 0,1,5,6)...