Wire a dusk-to-dawn (day-night) sensor to automatically control lights at sunset and sunrise. Includes wiring steps, safety tips, and common sensor types.