handle heating *and* cooling
fixed setup() and syntax errors