Arduino sketch to monitor battery voltage and light levels and control relays or MOSFETs