hi,currently im doing a project on pic16f877. the inputs are from LDR and temperature sensor(LM35), and the output is rotation of a servo motor. the servo motor must able to rotate for 0, 15, 30, 45, 60, 75 and 90 degree base on the changing of both temperature and LDR sensors. Any idea of the source code to be programmed into the PIC16f877?