a thermometer implementation from the internet.