The kit comes with project cards and a link to download the accompanying Python scripts. And projects already include a light meter and email notifier, so I decided to combine these two projects into one and make something that will send an email whenever the fridge door is opened.
This is particularly timely as the MonkMakes team are trying to loose some weight at the moment. The paper template on the Raspberry Pi GPIO connector is called a Raspberry Leaf.
BTW. A big thank you to Fritzing for a great design tool.
The photoresistor needs to be inside the fridge, so we can use two of the male to female jumper leads. This will of course also provide us with proof to the eternal question of whether the light really goes off when you close the fridge door.
To install the program on the Raspberry Pi, you probably want to connect using SSH (see this Adafruit tutorial). Run the command “nano fridge.py” and paste the following code into the editor.