Using a Raspberry Pi mounted in my garage, I check if the garage door has been left open, the light has been left on, the temperature and other things. This repo is the source that goes along with that project.
#For details, see the following blog posts: