2 analog controller and a relay

okay, thanks. i enterely agree with this concept! is there any way i could get a 24vdc valve to open when my light sensor is enable and to close when my temp sensor reads x degrees?