Our logging code is here
Getting started with Raspi is all over the Internet, but you might start here
To analyze the data we used scp to copy the data over wifi to our computers where we could analyze it with pandas and jupyter
The code to display data on the Magic Mirror is here and uses this module
Consider shopping at Adafruit
Good luck!