A terrarium really is a beautiful thing. Tom Bennet has placed a temperature sensor inside his terrarium box and then hooked up a Raspberry Pi to it. The Pi controls an Energenie home automation switch to maintain the environment inside. Take a look at how he did it here.