The very idea behind any automation process is optimizing something worth saving or preserving. When we look at light, it…