Added PWM control based on light setting and rough calculation of sun path in logger.py