Can anyone help me with a program code for 8051 microprocessor (Embedded C language)?

Question by : Can anyone help me with a program code for 8051 microprocessor (Embedded C language)? I’m making an Automatic Street-Light Controller, wherein, the microprocessor is used to switch on/off the light. It’s constructed using an LDR, which detects presence or absence of light. Now, the Microprocessor is supposed to sense if the LDR is in saturation or cut-off …