Research Article

IoT-Based Smart Management of Healthcare Services in Hospital Buildings during COVID-19 and Future Pandemics

Algorithm 5

Using the thermal sensor data described in C.
  / Thread-5 /
  void thread5(void unused){
  int value;
  value = (int ) unused;
  if(S2 == OUT && T1 == OUT && S1 == OUT) || (S2 == IN && T1 == IN && S1 == IN){
  room (--)(++);
  }
  while(1); /loop forever/
  }