Night switch is a device with a built-in photo-sensor that measures ambient brightness and automatically switches on connected lighting fixtures when darkness falls and switches off again at dawn.