There is a similar example over in the WIKI section under "Projects" and then "Temperature" that might get you started.