basic functionality for temp_fan sketch