Weather station. Light sensor upgrade

l With the previous version of weather station , there was a big problem with the light sensor because Raspberry Pi doesn’t have analog pins and I must implement a kind of analog / digital conversor using capacitors to make it work, So I changed the light sensor from Raspberry Pi to Arduino making all to work much better.

Photo resistor on Arduino

This also needs some code change to allow the Rasperry Pi script to get data from Arduino: