Use MAX17048 battery estimates with the correct one-cell design, register decoding, temperature compensation, alerts and independent battery protection.
Read OPT4001 light data with the correct package conversion factor, coherent result registers, counter and CRC checks, and documented optical conditions.