What is the function of your "Dark Detector"? Night-light, Garden Light, will it run off of batteries(if so how many?), Transformer, AC Line power...etc when darkness is detected do you want the light to stay on steady or to flash?
These are some of the questions that most of us need to make informed and practical choices when helping you design a project.
Please help US help YOU!