The logic below is for when the fan status and fan command don't match after 10 seconds. 

Logic Flow: If fanStatus and fanCommand don't match after 10 seconds, set alarmVar variable to true, else false.