Code Snippets Similar to "Programmable Thermostats":