Updated TemperatureExample with complete code

Prior to this change TemperatureExample was just a couple of template
files.